紫陌
发表于 2018-5-7 14:04:49
captaincaptain
发表于 2018-5-7 16:32:15
0.无限个
1.0个
2.a,b,c
3.3,4,4
4.z=(x>0?x:-x)
MeteorSystem
发表于 2018-5-9 18:36:03
答案
sh1t灬
发表于 2018-5-9 19:14:02
回复
Renkoy
发表于 2018-5-12 14:40:01
渴望答案!
Romeo
发表于 2018-5-13 20:18:09
想知道
zhufangtao
发表于 2018-5-14 03:47:30
1
星空流浪者
发表于 2018-5-14 13:40:51
大难在哪里
loya
发表于 2018-5-17 09:33:56
0.10次,1.12次
skins_dh
发表于 2018-5-19 13:39:55
1
GhostW3679
发表于 2018-5-20 16:45:54
看答案。
daibanchedi
发表于 2018-5-21 16:59:14
搞定
mfq372712593
发表于 2018-5-21 18:52:10
{:5_99:}
BlackitRabbit
发表于 2018-5-22 16:50:01
DENG
土豆毛豆豌豆
发表于 2018-5-23 17:28:33
46368
bod
发表于 2018-5-24 07:21:20
c
soulwyb
发表于 2018-5-27 00:02:30
2.
#include <stdio.h>
#defint PI 3.1425926
int main()
{
int m = -1;
float pi = 0;
while (fabs(pi) != PI)
{
pi += -(1/m);
m += 2;
}
printf("pi的绝对值为%f\n", pi);
return 0;
}
3.
#inlucde <stdio.h>
int main()
{
int rabbit_n = 1;
int rabbit_b, rabbit_s, month;
for (rabbit_b = 0,month = 23; month > 0; month--)
{
rabbit_s = rabbit_n + rabbit_b;
rabbit_b = rabbit_n;
rabbit_n = rabbit_s;
}
printf("总共有%d只兔子\n", rabbit_s);
return 0;
}
soulwyb
发表于 2018-5-27 00:12:26
0.
#include <stdio.h>
int main()
{
int capital = 10000;
float fish = 10000;
float black_y = 10000;
int n = 0;
while (1)
{
fish +=(capital * 0.1);
black_y += (black_y * 0.05);
n ++;
if (fish < black_y)
{
printf("%d年后,黑夜的的投资额超过小甲鱼!\n", n);
printf("小甲鱼的投资额是:%.2f\n", fish);
printf("黑夜的投资额是:%.2f\n", black_y);
break;
}
}
return 0;
}
1.
include <stdio.h>
int main()
{
long int money = 4000000;
int n =0;
while (money > 0)
{
money -= 500000;
money *= (1 + 0.08);
n++;
}
printf ("%d年之后小甲鱼才会败光所有家产,再次回到一 贫如洗\n", n);
return 0;
}
eez
发表于 2018-6-6 20:10:10
666
封天宇
发表于 2018-6-9 20:36:47
朕想知道