小子翠
发表于 2020-5-2 20:27:42
0:10
1:10
2: a=5 b=5 c=5
3:a=3,b=3,c=6
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;
}
else
sheds = 2;
help = 2 * sheds;
c:while (1)
{
scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
break;
}
else
count++;
}
#include <stdio.h>
int main()
{
double x=1000,h=1000;
int n=0;
do
{
x += 1000*0.1;
h += h * 0.05;
n++;
}while(h<x);
printf("%dÄêoó£¬oúò1μÄí¶×ê¶î3¬1yD¡¼×óã!\n",n);
printf("D¡¼×óãμÄí¶×ê¶îêÇ:%lf\n",x);
printf("oúò1μÄí¶×ê¶îêÇ:%lf",h);
return 0;
}
1:#include <stdio.h>
int main()
{
double i=4000000;
int n=0;
while(i>0)
{
i -= 500000;
i += i * 0.08;
n++;
}
printf("%dÄêoó£¬D¡¼×óã°ü1aáËËùóDμļò2ú£¬Ôù′λØμ½ò»Æ¶èçÏ′¡£¡£¡£",n);
return 0;
}
2:不会
3:#include <stdio.h>
int main()
{
int sum=2;
for(int i=0;i<=24;i++)
{
sum *= 2;
}
printf("%d",sum);
return 0;
}
lawyerlzc
发表于 2020-5-4 16:59:24
#include <stdio.h>
int main()
{
double i=400.0 ;
int year=0;
while(i>0)
{
i=i*1.08;
i=i-50;
year++;
}
printf("%d年后",year);
}
zmc7586
发表于 2020-5-5 08:55:23
66666
459888328
发表于 2020-5-5 10:39:35
100
11
abc
14
z =( if x>= 0 ?x =x:x = -x)
if (size > 12)
{
cost = cost * 1.05;
flag = 2;;
}
bill = cost * flag;
viaa
发表于 2020-5-5 11:42:14
1
Darker开落
发表于 2020-5-6 09:09:55
0:10个
1: 没有输出
2; c=5;b=c;a=b;
3; a= 14 b=5 c= 9
4: z=abs(x)
5:(1)if (size > 12)
{coat=cost*1.05;
flag=2;
}
bill=cost + flag;
(2)if(ibex > 14)
{sheds = 3;
}
sheds = 2;
help = 2*sheds;
(3)if(score < 0)
{printf("count=%d\n",count);
}
count ++;
scanf("%d",&score);
学代码的小杜
发表于 2020-5-6 09:54:23
1
霁雨暄涵
发表于 2020-5-6 13:15:08
回复
热心市民_金先生
发表于 2020-5-6 16:34:53
{:7_146:}
YYYS
发表于 2020-5-6 17:01:22
{:5_108:}
金装小学生
发表于 2020-5-6 17:12:53
1
Orange7
发表于 2020-5-6 20:08:05
kk
gzhellcat
发表于 2020-5-6 22:57:48
{:10_275:}
Camellia丶茶花
发表于 2020-5-7 11:57:33
123
爱老婆爱编程
发表于 2020-5-7 15:29:21
1
传说中的杨
发表于 2020-5-7 17:50:31
{:10_256:}{:10_254:}{:10_254:}哈哈
Dweck-Robin
发表于 2020-5-8 10:52:05
1052
yaziya
发表于 2020-5-8 20:22:37
{:7_112:}
小夫子啊5
发表于 2020-5-9 09:48:01
朕想知道
萌虫殿下
发表于 2020-5-9 13:00:14
A;
if (size > 12)
{
cost = sost * 1.05;
flag = 2;
bill = cost * flag;
}
else
{
bill = cost * flag;
}
B
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
help = 2 * sheds;
}
C
while (score >= 0)
{
scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
break;
}
count++;
}