teredoo
发表于 2022-9-26 12:46:49
0.10
1.0
2. a,b,c
3.
4.z = x>0?x:(-1*x)
5.
A:
if (size > 12)
{
cost = cost*1,05;
}
else
{
b: bill = cost * flag;
}
B:
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
help = 2 * sheds;
}
C:
do
{
scanf("%d",&score);
if(score < 0)
{printf("count = %d\n",count);
break;}
count++;
}while(score>0);
0.
#include<stdio.h>
int main()
{
float xjy,heiye;
int year = 0;
xjy = heiye = 10000;
for(;xjy>=heiye;year++)
{
xjy = xjy + 1000;
heiye = heiye + heiye*0.05;
}
printf("%d年后,黑夜超过小甲鱼\n小甲鱼:%.2f\n黑夜:%.2f",year,xjy,heiye);
return 0;
}
1.
#include<stdio.h>
int main()
{
int year = 0;
float money = 400;
for(;money>0;year++)
{
money = money - 50;
money = money + money*0.08;
}
printf("%d",year);
return 0;
}
2.
3.
cuppa
发表于 2022-9-26 21:38:48
冲
EZ4Wang
发表于 2022-9-27 10:56:41
0.0
狮子头
发表于 2022-9-27 13:01:16
10
11
a,b,c
14 5 9
x>=0? z=x,z=-x;
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);
count++;
}while(score>=0);
printf("count=%d\n",count);
盐汽水泡泡糖
发表于 2022-9-27 17:53:42
1
prmeng
发表于 2022-9-27 18:57:01
124124
LZW138135
发表于 2022-9-28 07:22:57
感谢
1540616418
发表于 2022-9-28 19:29:07
100
0
c=5,b=c,a=b
14
奇迹观测
发表于 2022-9-29 08:54:57
1
syl1997
发表于 2022-9-29 09:25:13
啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
PythonisS1mple
发表于 2022-9-29 11:19:37
ok
念123
发表于 2022-9-29 18:23:57
1
lxMission
发表于 2022-9-29 22:25:02
1
我要会学C语言
发表于 2022-10-1 08:22:24
111
潜言勿忘
发表于 2022-10-1 16:10:14
1
TKXZ
发表于 2022-10-1 19:58:46
打卡
17970qwert
发表于 2022-10-2 10:20:22
看答案
abcbbb
发表于 2022-10-3 00:05:42
答案
灯火阑珊201
发表于 2022-10-3 16:28:40
1
cufml
发表于 2022-10-4 00:05:33
本帖最后由 cufml 于 2022-10-4 00:06 编辑
555555
wwwwwwwwwwwwwwwwww
为啥我的第一个程序打不出来