q5462310
发表于 2020-3-12 21:58:56
11111111
lin33856568
发表于 2020-3-12 22:05:13
0000
Canck
发表于 2020-3-12 22:40:37
看看答案
oranger946
发表于 2020-3-13 09:51:03
1
yiliangkuo
发表于 2020-3-13 09:54:33
1
myufu
发表于 2020-3-13 11:22:20
先看
sadaasa
发表于 2020-3-13 12:01:10
看参考答案
张冲。
发表于 2020-3-13 16:43:53
答案
千夜绯雪
发表于 2020-3-13 17:00:52
看答案
MXZ
发表于 2020-3-13 17:16:59
想飞
alex5153
发表于 2020-3-14 11:36:15
程序不停运行,,停不下来了。不行,冒烟了 。。。。炸了 。。。嘣!!
蒲公英似食材
发表于 2020-3-14 12:56:40
参考答案
hsh19930221
发表于 2020-3-14 13:05:37
1
yexing
发表于 2020-3-14 16:18:23
测试题:
0.
10次
1.
10个
2.
a, b, c
3.
a = 14, b = 3, c = 9
4.
z = (char)x=='-'? int(char)x : int(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
do
{
scanf("%d", &score);
if (!(score < 0))
{
count++;
}
}
printf("count = %d\n", count);
动动手:
0.
#include <stdio.h>
int main()
{
float xiaojiayu = 10000, heiye = 10000;
int year = 0;
while (!(heiye > xiaojiayu))
{
xiaojiayu = xiaojiayu + 10000 * 0.1;
heiye = heiye + heiye * 0.05;
year += 1;
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n", year);
printf("小甲鱼的投资额是:%.2f\n", xiaojiayu);
printf("黑夜的投资额是:%.2f\n", heiye);
return 0;
}
1.
#include <stdio.h>
int main()
{
int year = 0;
float money = 4000000;
while (money > 0)
{
year++;
money = money + money * 0.08;
money -= 500000;
}
printf("%d年后,小甲鱼败光了所有的家产,再次回到一贫如洗......\n", year);
return 0;
}
后面;两题实在找不出思路啊TAT,让我看看答案学习学习吧QAQ
阿斯兰的哭哈
发表于 2020-3-14 17:47:02
1
woshiaotuman
发表于 2020-3-14 20:43:09
zhidao
1014655058
发表于 2020-3-14 21:49:13
加油加油加油
arrovart
发表于 2020-3-15 10:05:21
谢谢谢谢万分感谢
afu
发表于 2020-3-15 11:30:26
答案
Aiboer
发表于 2020-3-15 15:13:14
答案