|
|
发表于 2019-6-8 15:29:47
|
显示全部楼层
0.
10
1.
0
2.
a b c
3.
c=9 b=5 a=14
4.if (x<0 && z=-x)
5
A.
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
bill = cost * flag;
B.
if (ibex > 14)
{
sheds = 3;
}
else
sheds = 2;
help = 2 * sheds;
C.
while score > 0
scanf("%d", &score);
count++;
printf("count = %d\n", count);
0.
if xiao < chu
xiao += xiao_init*1.1
chu = chu*1.05
year++
1.
#include<stdio.h>
#include<stdio.h>
int main()
{
int money = 400*1000,count=0;
while (money >= 0)
{
money -=50*1000;
money = money*1.08;
count ++;
}
printf("%d",count);
return 0;
}
2.
#include<stdio.h>
#include<math.h>
int main()
{
float i,pi=0,fuhao=1;
for (i=0;fabs(1/(2*i+1)) > 0.0000001;i++)
{
pi+=(1/(2*i+1))*fuhao;
fuhao=-fuhao;
}
printf("%f",pi*4);
}
|
|