1
0 10
1 11
2 a,b,c
3 14
4 x > 0 ? z = x : z = -x
5 Aif (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
B if (ibex > 14)
{
sheds = 3;
help = 2 * sheds;
}
sheds = 2;
help = 2 * sheds;
C readin: scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
你好
1
朕想看看
0
0: 10
1:0
2:c'
3:a = (3 ,4 ,8,13)b= 3 , c = 9
4:
5:
hh
1
要看
I LOVE FISHC
10
棒
朕想知道
1
0:10个A1:0个B
打卡
测试题
0.
10次
1.
0次
2.
3.
a==14
b==5
c==9
4.
z = (x > 0)?x:-x
5.
A
if(size >12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost *flag;
B.
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
}
help = 2 * sheds;
C.
scanf(“%d”, &score);
while (score >= 0)
{
count++;
scanf(“%d”, &score);
}
printf(“count = %d\n”, count );
动动手
0.
#include <stdio.h>
int main()
{
float xjy=10000, hy=10000;
int year=0;
do
{
xjy = xjy + 1000;
hy = hy + (hy * 0.05);
year++;
}
while (hy < xjy);
printf("%d年后,黑夜的投资超过小甲鱼!\n", year);
printf("小甲鱼的投资额是: %.2f\n", xjy);
printf("黑夜的投资额是: %.2f", hy);
return 0;
}
1.
#include <stdio.h>
int main()
{
float xjy=4000000;
int year=0;
do
{
xjy = xjy - 500000;
xjy = xjy + (xjy * 0.08);
year++;
}
while (xjy > 0);
printf("%d年后,小甲鱼败光了所有家产", year);
return 0;
}
2.
3.
666
答案