要强求
发表于 2021-7-2 16:41:19
0.100
1.9
2.a=5
3.a=14
b=5
c=9
4.z=x>=0?x:abs(x);
5.if(size>12)
{
cost = cost * 1.05;
flag =2;
}
bill=cost*flag;
b; if(ibex>14)
{
sheds=3;
}
sheds=2;
help=2*sheds;
c;#include <stdio.h>
int main()
{
int score,count=1;
scanf("%d",&score);
while(score>=0)
{
scanf("%d",&score);
}
while(score<0)
{
printf("count=%d\n",count);
count++;
scanf("%d",&score);
}
return 0;
}
0.
sgwhww
发表于 2021-7-2 18:32:43
hei
hukl
发表于 2021-7-3 13:52:41
0、100
1、10
2、a,b,c
3、c=9,b=5,a=14
4、x < 0 ? -x = z : x=z;
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、while(1)
{
readin: scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
}
动手0、#include<stdio.h>
int main()
{
float fish=10000,black=10000;
int year;
while(black <= fish)
{
fish = fish + 0.1*10000;
black = black +black*0.05;
year = year + 1;
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n",year);
printf("小甲鱼的投资额是:%.2f\n",fish);
printf("黑夜的投资额是:%.2f\n",black);
return 0;
}
1、#include<stdio.h>
int main()
{
float fish = 400;
int year = 0;
while(fish >= 0)
{
fish = fish + fish * 0.08 - 50;
if(fish < 0)
{
break;
}
year = year + 1;
}
printf("%d年之后,小甲鱼败光了所有的家产,再次回到一贫如洗......",year);
return 0;
}
2、#include<stdio.h>
#include<math.h>
int main()
{
int i=1;
double sum = 1,n = 1,j=3;
while(fabs(n) > 1e-8)
{
i=-i;
n = i / j;
sum = sum + n;
j = j + 2;
}
printf("%.7f\n",sum*4);
return 0;
}
3、#include<stdio.h>
int main()
{
int a = 1,b = 1,i,sum;
for(i = 3;i <= 24;i++)
{
sum = a + b;
a = b;
b = sum;
}
printf("%d",sum);
return 0;
}
y2433159195
发表于 2021-7-3 17:10:35
答案
ipqlk
发表于 2021-7-3 19:23:22
看答案
xiaoran666
发表于 2021-7-3 19:24:32
.
wwjjww1995
发表于 2021-7-3 21:09:08
1111111111111111111111111111111
Routh、
发表于 2021-7-6 16:36:50
1
BerealChen
发表于 2021-7-6 21:15:20
1
mcy2223535173
发表于 2021-7-7 14:46:37
1111
sss21
发表于 2021-7-7 20:18:11
pppppp
瑞邦c语言大师
发表于 2021-7-7 21:06:29
1
wonkaC
发表于 2021-7-8 10:24:21
~~~
牧羊boy
发表于 2021-7-8 11:51:53
0:10
1:0个
2:a,b,c
3:a=14, b=5, c=9
4:if (x >=0)
冲冲冲ya
发表于 2021-7-8 17:14:16
今天也是加油的一天
C语言学习者001
发表于 2021-7-9 21:56:09
不会了
会飞的yu
发表于 2021-7-11 07:50:28
1
白菜杆子
发表于 2021-7-11 12:45:26
1
高朱一录
发表于 2021-7-11 15:19:12
查看答案‘’
Lollipop_TK
发表于 2021-7-11 21:37:42
答案