Cimone
发表于 2020-10-10 22:12:56
0.100
1.10
2.a,b,c
3.b=3 c=9 a=14
4.x<0 ? z=-x : z=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);
qdyyy
发表于 2020-10-11 00:13:42
1
CZSCZS
发表于 2020-10-11 09:01:27
ilovefish
Restartsun
发表于 2020-10-11 16:09:33
1
kevinchou
发表于 2020-10-11 19:13:32
1
ch4509
发表于 2020-10-11 20:43:36
{:5_109:}
菜鸟学习机
发表于 2020-10-11 22:00:05
看答案
555666777
发表于 2020-10-12 15:15:15
1
jialouluos
发表于 2020-10-12 15:37:28
朕想知道
你快乐吗?
发表于 2020-10-13 09:58:23
5
ylp547
发表于 2020-10-13 11:47:23
0.10
1.0
2.a
3.
a=3
b=5
c=4
4.
if (x<0)
{
z = x*(-1)
}
else
{
z=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);
0.
#include <stdio.h>
int main(void)
{
int yu=10000,year=1;
float c_yu,n_yu=0.0,hei=10000;
while (1)
{
c_yu = yu*0.1;
n_yu += c_yu;
hei = hei*(1+0.05);
if (hei>(n_yu+yu))
{
printf("%d年后,黑夜投资额超过小甲鱼!\n",year);
printf("小甲鱼投资额为:%.2f\n",n_yu+yu);
printf("黑夜投资额为:%.2f\n",hei);
break;
}
year++;
}
}
1.
#include <stdio.h>
int main(void)
{
int year=1;
float a = 4000000;
while(1)
{
a -= 500000;
a = a*(1+0.08);
if (a<=0)
{
printf("%d年后,败光家产!\n",year);
break;
}
year++;
}
return 0;
}
2.
3.
#include <stdio.h>
int main(void)
{
int m=24,a1=1,a2=1,a3;
while (m-2>0)
{
a3 = a1+a2;
a1 = a2;
a2 = a3;
m -= 1;
}
printf("%d",a3);
return 0;
}
Wonzur
发表于 2020-10-13 15:28:51
阿大使阿萨德
nndajihe
发表于 2020-10-13 17:34:13
.
dsdsdfraccc
发表于 2020-10-14 10:41:39
sdsd
Adam_liu
发表于 2020-10-14 14:45:06
0. 100?
1. 10
2. a, b, c
3. a= 16 b= 6 c= 10
4. z = x>0? x : -x;
5.if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
初始化橙子
发表于 2020-10-14 16:19:30
12
田树文
发表于 2020-10-14 17:23:18
666
tmacymc
发表于 2020-10-14 18:41:52
xinzaizai
发表于 2020-10-14 19:20:54
0、100
1、0
2、
3、b=4 c=9 a=14
4、a>=0? z=a:z=-a
5、if(size>12)
{ cost=cost*1.05;flag=2;}else{bill=cost+flag;}
if (ibex > 14)
{
sheds = 3;
}
else{sheds = 2;
help = 2 * sheds;}
for(;;)
{if (score < 0){ printf("count = %d\n", count); break; }
else{ count++;scanf("%d", &score); }
sterben555
发表于 2020-10-14 19:25:22
冲冲冲