yccccccy
发表于 2021-10-3 15:21:52
1
东方笑
发表于 2021-10-3 16:16:08
1
Guillaume
发表于 2021-10-4 10:53:57
0
fyq123
发表于 2021-10-4 14:01:03
好难!
QXJD
发表于 2021-10-4 14:07:58
QXJD
伊澄
发表于 2021-10-4 16:48:06
答案
虎牙赖神很捞
发表于 2021-10-5 23:23:12
答案
SURONG0808
发表于 2021-10-6 13:03:46
k
J_Y_T
发表于 2021-10-6 20:17:37
6
heartwarming
发表于 2021-10-6 20:40:15
{:5_90:}
18971811635
发表于 2021-10-6 21:26:39
1
txinnian
发表于 2021-10-6 23:17:40
k
coura
发表于 2021-10-7 09:54:43
{:5_110:}
TY陈十一
发表于 2021-10-7 10:54:05
{:10_266:}
python1019
发表于 2021-10-7 22:30:28
#include <stdio.h>
int main()
{
int year = 0;
float x, h = 10000.00;
while (1)
{
x = 10000 + (10000 * 0.1 * year);
h = h * (1 + 0.05);
year++;
if (h > x)
{
break;
}
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n", year-1);
printf("小甲鱼的投资额是:%.2f\n", x);
printf("黑夜的投资额是:%.2f\n", h);
return 0;
}
luluggghrq
发表于 2021-10-8 16:33:49
0.
float moneya = 10000, moneyb = 10000;
int count = 0;
while (moneyb <= moneya)
{
moneya = 10000 * 0.1 + moneya;
moneyb = moneyb * 0.05 + moneyb;
count++;
}
1.
float money = 4000000;
int count = 0;
while (money > 0)
{
money = (money - 500000) * 0.08 + money - 500000;
count++;
}
printf("%d年后,将败光所有资产",count);
2.
long long int j;
int i=1;
float pi = 0 , piyu;
while (1)
{
piyu = (float)1/j;
pi = pi + i * piyu;
i = - i;
j += 2;
if (fabs(piyu)< 0.00000001)
{
break;
}
}
3.
15620117641
发表于 2021-10-8 21:36:25
兔子真多
打怪升级中
发表于 2021-10-8 21:49:17
1
Sh丶似凰
发表于 2021-10-8 23:51:51
asd
天坑研究生
发表于 2021-10-9 09:51:06
回复