棒棒小鸭子啦
发表于 2022-10-15 20:33:45
S
2457012237
发表于 2022-10-15 20:36:35
查看参考答案
ahj1111
发表于 2022-10-15 21:29:54
,
Kasey
发表于 2022-10-15 21:48:48
查阅答案
Emily.
发表于 2022-10-16 18:52:41
ok
上官秀
发表于 2022-10-17 10:51:51
1
番茄laosp
发表于 2022-10-17 21:22:22
JerryWu~
发表于 2022-10-18 10:36:47
学
zhengsc
发表于 2022-10-18 15:29:59
0.10
1.不打
2.cba
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;
}
sheds = 2;
help = 2 * sheds;
C
do{ scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
}while(score!='\n');
0.
#include <stdio.h>
int main()
{
float sum1=10000,sum2=10000;int yeah=0;
do
{
yeah++;
sum1 = sum1+ 10000*0.1;
sum2 =sum2*(1+0.05);
}while(sum2<sum1);
printf("%d年后,黑夜超过小鱼!\n",yeah);
printf("小鱼投资是:%.2f\n",sum1);
printf("黑夜投资是:%.2f\n",sum2);
return 0;
}
1.
#include <stdio.h>
int main()
{
float sum1=400;int yeah=0;
do
{
yeah++;
sum1 -= 50;
sum1 =sum1*(1+0.08);
}while(sum1>0);
printf("%d年后,小鱼家产归零!\n",yeah);
return 0;
}
2.
#include <stdio.h>
#include <math.h>
int main()
{
double i=1,j=1;
double temp=0,pi=0;
do
{
temp=4/i*j;
pi += temp;
i+=2;
j=-j;
}while(fabs(temp)>=pow(10,-8));
printf("pi的值是:%.7f\n",pi);
return 0;
}
3.
#include <stdio.h>
int main()
{
int a=1,b=1,i;
for(i=1;i<=12;i++)
{
a=b;b=a+b;
}
printf("b=%d\n",b);
return 0;
}
原来是我错付了
发表于 2022-10-18 19:07:11
{:7_112:}
3356273980
发表于 2022-10-18 19:47:05
cy
LHZ1999
发表于 2022-10-18 21:00:01
1
Dmol
发表于 2022-10-19 19:40:26
asdasdasdasdas
SODA417
发表于 2022-10-19 23:25:57
10
11
a b c
a=b=3 c=9
x>0?a:b z=a
星庚长梦
发表于 2022-10-20 09:26:49
0.100
1.10
2.abc
3.30 3 9
4.
kathy.js
发表于 2022-10-20 15:06:09
d
山竹泉凉糕
发表于 2022-10-20 19:11:01
gulugulu
bubu1888
发表于 2022-10-20 20:36:52
1
rin1236713
发表于 2022-10-20 20:45:04
ok
嘎嘎的yibo
发表于 2022-10-20 21:09:57
1