0.10
1.0
2. a,b,c
3.
4.z = x>0?x:(-1*x)
5.
A:
if (size > 12)
{
cost = cost*1,05;
}
else
{
b: bill = cost * flag;
}
B:
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
help = 2 * sheds;
}
C:
do
{
scanf("%d",&score);
if(score < 0)
{printf("count = %d\n",count);
break;}
count++;
}while(score>0);
0.
#include<stdio.h>
int main()
{
float xjy,heiye;
int year = 0;
xjy = heiye = 10000;
for(;xjy>=heiye;year++)
{
xjy = xjy + 1000;
heiye = heiye + heiye*0.05;
}
printf("%d年后,黑夜超过小甲鱼\n小甲鱼:%.2f\n黑夜:%.2f",year,xjy,heiye);
return 0;
}
1.
#include<stdio.h>
int main()
{
int year = 0;
float money = 400;
for(;money>0;year++)
{
money = money - 50;
money = money + money*0.08;
}
printf("%d",year);
return 0;
}
2.
3.
冲
0.0
10
11
a,b,c
14 5 9
x>=0? z=x,z=-x;
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:
do{
scanf("%d",&score);
count++;
}while(score>=0);
printf("count=%d\n",count);
1
124124
感谢
100
0
c=5,b=c,a=b
14
1
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
ok
1
1
111
1
打卡
看答案
答案
1
本帖最后由 cufml 于 2022-10-4 00:06 编辑
555555
wwwwwwwwwwwwwwwwww
为啥我的第一个程序打不出来