#include <stdio.h>
int main()
{
double j,k;
k = 400, j = 0.08;
int y;
while (k > 0)
{
y++;
k = k * (1 + j);
k = k - 50;
printf("%.2f\n",k);
}
printf("%d",y);
return 0;
}
1
1
1
{:7_125:}
1
1
0. 10
1. 11
2.
收拾收拾
数学好难
.
1
{:5_108:}
1
兔子生兔子真想不明白了
#include<stdio.h>
int main()
{
int i;
float pi=4;
float j;
for(i=1,j=3;i<100;i++,j+=2)
{
if(i%2!=0)
{
pi=pi-(4/j);
}
else
{
pi=pi+(4/j);
}
}
printf("Pi=%.10f",pi);
return 0;
}
1
第二题太难了
0.100
1.11
2.a,b,c
3. 15 5 10
4.
5. A、if(size >12)
{
cost *= 1.05;
flag = 2;
}
else
bill = cost * flag;
2、 if(ibex >14)
{
sheds = 3;
}
else
sheds = 2;
help = 2 * sheds;
C、 if(score < 0)
{
printf("count = %d\n",count);
}
else
count++;
readin;
{:10_243:}
1