1
1.10
2.0
3.a=14,b=5,c=9
4.
5.
A.
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
B.
if (ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2 * sheds;
C.
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
henhao!
学习学习。
答案
对答案
0.10个
1.0个
3.b=5 c=9,a=14
4.z=x>-x?x:-x
5.if(zise>12)
{
cost=cost*1.05;
flag=2;
}
elsebill = cost*flag;
if(ibex>14) sheds=3;
else
{
sheds=2;
help=2*sheds;
}
while(1)
{
scanf("%d",&score);
if(score<0) {
printf("count=%d\n",count);
break;
}
else count++;
}
0.#include<stdio.h>
int main()
{
float turtle=10000,black=10000;
int i=1;
while(i++)
{
turtle+=10000*0.1;
black+=black*0.05;
if(black>turtle)break;
}
printf("%d年后,黑超过甲鱼:\n",i-1);
printf("黑夜:%0.2f\n甲鱼:%0.2f\n",black,turtle);
return 0;
}
1.#include<stdio.h>
int main()
{
double Pi=0;
double m=1;
int i=-1;
for(;1/m>=0.00000001;m=m+2)
{
i=-i;
Pi+=i/m;
}
printf("Pi=%0.7f\n",4*Pi);
return 0;
}
2.#include<stdio.h>
int main()
{
int a=1,b=1;
//....
return 0;
}
朕想知道
动手题第3题的答案,应该是……对兔子,而不是只吧?
hhh
0 10个
1 0
2 c b a
3 14 5 9
4 z = x>=0 ? x : -x
5
程序不能打印出A,进入死循环。
1. 程序不能打印出B。
2. 5.
3. a=14b=3 c=9
4.
5.
A.
if (size > 12)
{
cost = cost * 1.05;
flag =2;
}
bill = cost * flag;
B.
if (ibex > 14)
{
sheds = 3;
}
help = 2* sheds;
C.
if (score <0)
{
printf("count = %d\n",count);
}
count ++;
scanf("%d",&score);
K
🆗
答案
支持楼主
0.10
1.0个
2.1
3.6.6.10
4.z=x>0?x:-x;
5.
支持
/Use
{:5_103:}