bizhiliang
发表于 2019-4-10 19:40:34
查看答案
微风中的碎片
发表于 2019-4-10 22:04:01
ok
郭恩峰
发表于 2019-4-11 10:54:26
欧克
HUMMER军
发表于 2019-4-12 18:18:01
0.100次
1.0次
2.abc
3.16 6 10
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;
}
sheds = 2;
help = 2 * sheds;
C.
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
HUMMER军
发表于 2019-4-12 18:58:31
动动手0
#include <stdio.h>
#include <math.h>
int main(void) {
double money=10000,n1=0.1,n2=0.05,sum1,sum2;
for(int i=1;i<100;i++){
sum1=money+(money*n1*i);
sum2=money*pow((1+n2),i);
if(sum2>sum1){
printf("%d年后,黑夜投资额超过小甲鱼\n",i);
break;
}
}
printf("小甲鱼的投资额是:%.2lf\n",sum1);
printf("黑夜的投资额是:%.2lf\n",sum2);
return 0;
}
动动手1
#include <stdio.h>
#include <math.h>
int main(void) {
int sum=400,year;
double r=0.08;
for(year=1;year<100;year++){
sum=(sum-50)*(1+0.08);
if (sum<0){
printf("%d年后,败光!\n",year);
break;
}
}
return 0;
}
1133302059
发表于 2019-4-13 21:17:51
兔子好难{:10_247:}
小圣呀
发表于 2019-4-14 09:29:01
0-9 10个
i++ 是0 不进入循环啊。。
a, a=b, a=b=c
b = 5 , c = 9
a = 9 + 5 = 14
z = x > 0 ? x:-x
if (size > 12)
{
cost = cost * 1.05;
}
flag = 2;
bill = cost * flag;
if (ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2 * sheds;
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
Leslie.C
发表于 2019-4-14 13:53:38
0.10个A
1.11
2.
3.8,3,3
4.
5.
BIT_烟囱
发表于 2019-4-14 17:19:36
1
Ben佘
发表于 2019-4-14 20:26:25
: )
19978349690
发表于 2019-4-15 12:43:08
查看参考答案
qq7273399499
发表于 2019-4-15 13:07:24
看看
15579618832
发表于 2019-4-15 19:26:12
0. 10
1. 10
2.a,b, c
3. a = 12, b = 4, c = 8
4. z = |x|
5. if (size > 12)
{
cost = cost * 1.05;
}
else if(flag = 2)
{
bill = cost * flag;
}
2.
if (ibex > 14)
{
sheds = 3;
}
else if(sheds = 2;)
}
help = 2 * sheds;
}
3.
readin:scanf("%d", &score);
while(readin : scanf("%d", &scaore) == 0)
{
if(score < 0)
{
printf("count = %d\n", count);
}
}
bakuyi
发表于 2019-4-16 10:24:17
{:10_266:}
echohah
发表于 2019-4-16 11:13:42
无条件支持楼主!
ajiemmd
发表于 2019-4-17 18:06:15
111
Robert丶
发表于 2019-4-17 23:05:24
1
Vage
发表于 2019-4-18 14:32:24
0 100
1 11
2 c=5 b=c a=b
3 a=13 b=4 c=9
4 x<0?z=-x:z=x
zYhero丶
发表于 2019-4-18 17:29:42
答案
三根烂铅笔
发表于 2019-4-19 10:51:53
888888888