老夫法号戒杀
发表于 2021-8-26 11:30:25
1
凡荒
发表于 2021-8-26 19:36:09
打卡
氢锂钠钾铷铯钫
发表于 2021-8-26 19:55:28
0.100
1.10
2.a
3. 15, 3, 4
周道曾
发表于 2021-8-26 20:11:43
厉害了
彩虹直至黑
发表于 2021-8-26 20:29:31
0 10*10
1 10
2a=b
3 b=3 a=8 c 3
4 if (x>=0)
z=x;
else
z=-x
5
XkfTAtXV9
发表于 2021-8-27 00:14:59
1111
欧皇大人
发表于 2021-8-27 15:25:30
{:5_90:}
Leng_Mo
发表于 2021-8-27 20:23:31
。。。
既狗又苟的我
发表于 2021-8-27 20:51:50
0.81个
1.11个
2.c
3.a = 3 , b = 4 , c = 9
4. z = a < 0 ? 0 - a : a;
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>
#include <math.h>
int main()
{
float fish = 10000;
float dark_night = 10000;
float fish_money = 0;
int year = 0;
do
{
dark_night = dark_night + dark_night*0.05;
fish = fish + 10000*0.1;
year++;
}
while(dark_night <= fish);
printf("%d年后,黑夜的投资额超过小甲鱼!\n",year);
printf("小甲鱼的投资额是:%.2f\n",fish);
printf("黑夜的投资额是:%.2f\n",dark_night);
return 0;
}
1.#include <stdio.h>
int main()
{
int money = 4000000,year = 0;
money = money - 500000;
year++;
while(money > 0)
{
money = money*0.08 + money - 500000;
year++;
}
printf("%d年之后,小甲鱼败光了家产,再次回到一贫如洗...\n",year);
return 0;
}
2.#include <stdio.h>
#include <math.h>
int main()
{
double i = 1;
double a = -3;
while(fabs(a) < pow(10,8))
{
i = i+1/a;
if(a < 0)
{
a = fabs(a) + 2;
}
else
{
a = fabs(a) + 2;
a = -a;
}
}
i = 4*i;
printf("π的小数点后前7位为:%.7lf",i);
return 0;
}
3.#include <stdio.h>
#include <math.h>
int main()
{
long long rabbit = 1 , month_1 = 1 , month_2 = 1;
int month = 3;
while(month <= 24)
{
month_1 += month_2;
month_2 += month_1;
rabbit = rabbit + month_1 + month_2;
month += 2;
}
printf("两年后共有%lld对兔子!\n",rabbit);
return 0;
}
liyan123
发表于 2021-8-28 10:10:19
1
KiyoseHaiiji
发表于 2021-8-28 10:52:58
0.
#include <stdio.h>
#include <math.h>
int main()
{
float money_1 = 10000, money_2 = 10000;
int year = 0;
while((money_1 = 10000+10000*0.1*year) >= (money_2 = 10000*pow(1.05, year))){
year++;
}
printf("%d年后,黑夜的投资金额超过小甲鱼!\n", year);
printf("小甲鱼的投资金额是:%.2f\n", money_1);
printf("黑夜的投资金额是:%.2f\n", money_2);
return 0;
}
850489301
发表于 2021-8-28 18:02:13
.
defal
发表于 2021-8-28 21:11:19
n
巨牙海民654
发表于 2021-8-28 21:32:34
66666666666666
AlexNg
发表于 2021-8-29 16:10:29
2323
kongsu
发表于 2021-8-29 16:41:58
感谢小甲鱼
laozhu281
发表于 2021-8-30 10:08:48
66666
opentime
发表于 2021-8-30 15:55:54
2021.8.30.15:55
Tanya_xiaomai
发表于 2021-8-31 14:52:59
1
星兔
发表于 2021-8-31 18:01:22
冲