北喜玛拉
发表于 2021-9-19 18:11:18
1
1137848349
发表于 2021-9-19 18:48:14
0.9个
1.0个
2.a,b,c
3.b=4 c=8 a=14
4.#include<stdio.h>
int main()
{
int x , z;
scanf("%d", &x);
z = x > 0 ? x : -x;
printf("%d", z);
return 0;
}
5.A. if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
{
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);
柚芯
发表于 2021-9-19 19:52:48
3
小小辣
发表于 2021-9-19 21:04:24
.
铬酸铅
发表于 2021-9-19 23:47:10
答案案
qiyuewuxi
发表于 2021-9-20 11:24:43
#include <stdio.h>
int main(int argc,const char *argv[])
{
int month = 2;
int rabbit = 0;
int number1 = 2;
int number2 = 0;
for(;month <= 24;month++){
number1 += number2;
rabbit += number1;
number2 = number1;
}
printf("两年后可以繁衍%d对兔子!",rabbit / 2);
return 0;
}
爱雨烟
发表于 2021-9-20 12:28:55
阿
niuniu12
发表于 2021-9-20 14:09:25
s
某野生逗比
发表于 2021-9-20 16:13:53
1
906908638
发表于 2021-9-20 18:05:45
1
shuimu39
发表于 2021-9-20 21:15:10
10
10
abc
14,5,9
Tylor沈
发表于 2021-9-21 09:18:24
1
语言君}
发表于 2021-9-21 11:24:49
.
小怪兽@
发表于 2021-9-21 16:46:21
0、10个
1、11个
2、a , b , c
3、a =14b =5c =9
4、z = (x>0? x:x*(*-1)
5、
A、
if (size > 12)
{
cost = cost *0.15;
flag = 2;
}
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-1);
动动手:
0、
#include<stdio.h>
int main()
{
double money1 =10000, money2 = 10000,result1 = 0, result2 = 0;
int year = 0 ;
while(result1 >= result2){
year++;
result1 = money1 * 0.1 * year + money1 ;
money2 =money2 * 0.05 + money2;
result2 = money2;
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n",year);
printf("小甲鱼的投资额是:%.2lf\n",result1);
printf("黑夜的投资额是:%.2lf\n",result2);
return 0;
}
1、
#include<stdio.h>
int main()
{
float money = 4000000 ;
int year = 0;
while ( money>=0)
{
year++;
money = money - 500000;
money = money* 0.08 + money;
}
printf("%d年后,小甲鱼败光了所有的家产,再次回到一贫如洗……\n",year);
return 0;
}
3、
#include<stdio.h>
#include<math.h>
int main()
{
double pi4 = 0 , i = 1;
int sign = 1;
while(fabs(1/i) >= 1e-8)
{
pi4 = pi4+ 1/i * sign;
i = i + 2 ;
sign = -sign;
}
printf("PI的近似值是:%.7lf\n",pi4*4);
return 0;
}
3、
#include<stdio.h>
int main()
{
int m1 = 1 , m2 = 1, month = 1;
while(month<= 24)
{
m1 = m2;
m2 = m1 + m2 ;
month++;
}
printf("两年后兔子的只数是:%d\n",m2);
return 0;
}
840918999
发表于 2021-9-22 10:42:32
6666666666666
牧童遥指
发表于 2021-9-22 11:10:21
1
guanghuian
发表于 2021-9-22 12:38:20
是
贝壳头
发表于 2021-9-22 15:23:03
思考题已经做完
MoAiLaoZi
发表于 2021-9-22 15:26:12
0:100次
1:10
2:
3:6487580, 6487576, 6487572
4:
5:
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
bill = cost * flag;
}
superswagy2002
发表于 2021-9-22 21:57:21
让朕看看答案