飞翔的小巨人
发表于 2020-7-30 17:08:00
学习学习
alexvictory
发表于 2020-7-31 12:31:37
答案
cheserio
发表于 2020-7-31 16:12:06
1
zxm2735180
发表于 2020-8-1 11:08:38
+
轻轻草原
发表于 2020-8-1 13:37:34
朕想知道
baihaotian612
发表于 2020-8-2 01:51:08
打卡学习
qggncc
发表于 2020-8-2 06:15:38
好难好难
学生YT
发表于 2020-8-3 00:35:16
1
851463351
发表于 2020-8-3 10:50:09
295411442dm
发表于 2020-8-3 11:41:25
{:5_90:}
dotafish
发表于 2020-8-3 18:42:12
-.-
imbalunar
发表于 2020-8-4 06:45:49
1
jyd2020
发表于 2020-8-4 10:36:51
查看
是哪个笨蛋
发表于 2020-8-4 18:21:08
兔子好难啊{:5_100:}
liuhuan336
发表于 2020-8-4 21:22:15
#include <stdio.h>
#include <math.h>
int main()
{
double pi = 0;
double temp=1;
int i=1;
//printf("pi = %.8f fabs(i/temp) = %.8f0.00000001i = %d\n", pi, fabs(i/temp), i);
while(fabs(i/temp) > pow(10,-8))
{
//printf("pi = %.8f %d/%.f = %.8f0.00000001i = %d\n", pi, i, temp, i/temp, i);
//为啥我加上printf程序要执行老半天,,不加printf秒出结果?
pi += i/temp;
temp+=2;
i = -i;
}
printf("pi = %.8f",pi*4);
return 0;
}
zirui
发表于 2020-8-5 02:22:06
晕
Cardry
发表于 2020-8-5 02:51:23
答案
xuzhidan123
发表于 2020-8-5 13:55:21
写、
mmmikuuu
发表于 2020-8-5 14:09:38
0.10个
1.0个
2.a,b,c
3.a == 14, b == 5, c == 14
4.x >= 0?z = x : z = -x
5.
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
}
help = 2 * sheds;
while (1)
{
scanf ("%d", &score);
}
if (score < 0)
{
printf("count = %d\n", count);
break;
}
else
{
count++;
}
0.
#include <stdio.h>
int main()
{
int years;
float jiayu, heiye;
jiayu = heiye = 10000;
while(1)
{
years++;
jiayu += 1000;
heiye *= 1.05;
if (heiye > jiayu)
{
break;
}
}
printf("%d年后 ,黑夜的投资额超过小甲鱼!\n",years);
printf("小甲鱼的投资额是 :%.2f\n",jiayu);
printf("黑夜的投资额是 :%.2f\n",heiye);
return 0;
}
1.
#include <stdio.h>
int main()
{
int years;
float jiayu;
jiayu = 4000000;
while(1)
{
jiayu -= 500000;
years++;
jiayu *= 1.08;
if (jiayu - 500000 <= 0)
{
break;
}
}
printf("%d年后 ,小甲鱼败光了所有的家产,再次回到一贫如洗......\n",years+1);
return 0;
}
2.
3.
#include <stdio.h>
int main()
{
int total, adult, first, rsecond, second, i;
adult = 1;
for (i = 1; i <= 24; i++)
{
rsecond = second;
second = first;
adult += rsecond;
first = adult;
}
total = second + adult + first;
printf("2年后一共有%d对兔子\n", total);
return 0;
}
851257338
发表于 2020-8-5 15:37:52
检查