13271611321
发表于 2022-12-25 16:23:01
问答题答案:
动动手答案:
丢的FC
发表于 2022-12-25 17:47:06
问答题答案:
c
动动手答案:
啊这啧啧啧
发表于 2022-12-25 20:20:26
p问答题答案:
动动手答案:
gaohong1312
发表于 2022-12-26 19:20:51
0
289454361
发表于 2022-12-26 21:03:46
1
天下万般兵刃
发表于 2022-12-27 10:50:42
1
nameless-------
发表于 2022-12-30 17:42:58
测试题:
0.erroy,因為for的表達式2的,不知是&&還是||
1.9次
2.a, b, c
3.a = 14, b = 5, c = 9
4.z = z >= 0? z: z*-1;
5.
A.
if (size > 12)
{
cost = cost * 1.05;
flog = 2;
}
else
{
bill = cost *flag;
}
B.
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
help = 2 * sheds;
}
C.
_Bool state = 0;
do
{
scanf("%d, &score");
if (score < 0)
{
printf("count = %d\n", count);
}
else
{
state = 1;
count++;
}
}while(!state);
动动手:
0.
#include <stdio.h>
#include <math.h>
int main()
{
float fish = 10000, night = 10000;
int count = 0;
while (fish >= night)
{
fish = 10000;
night = 10000;
count++;
fish = fish * (1 + 0.1 * count);
night = night * pow((1 + 0.05), count);
}
printf("%d year later, night will over the fish!\n", count);
printf("fish: %.2f\n", fish);
printf("night: %.2f\n", night);
return 0;
}
1.
#include <stdio.h>
int main()
{
float fish = 4000000;
int count = 0;
while (fish >= 0)
{
fish -= 500000;
fish *= (1 + 0.08);
count++;
}
printf("%d year later, fish no money\n", count);
return 0;
}
2.
#include <stdio.h>
#include <math.h>
int main()
{
float pi = 1, j = -1.0;
int num = 3, i;
for (i = 0; i < 1000000000; i++)
{
pi += j / num;
num += 2;
j = -j;
}
pi *= 4;
printf("%.7f\n", pi);
return 0;
}
3.
#include <stdio.h>
int main()
{
int a, b, c, month;
a = 1;
b = 1;
for (month = 2; month >= 24; month++)
{
c = a + b;
a = b;
b = c;
}
printf("%d\n", c);
return 0;
}
32767隻
2833619605
发表于 2022-12-30 21:15:56
3
awalon
发表于 2022-12-31 09:50:57
//%[.precision]specifier
//scanf &
/*
110
10
abcd
b=3 c=9
x>=0?z=x:;
*/
星域巷
发表于 2022-12-31 15:00:45
0:100
1:11
2:a,b,c
3:
a=13
B=5
C=9
4:x > 0 ? x : -x
5:
A:
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
bill = cost * flag;
B:
if (ibex > 14)
{
sheds = 3;
}
else
sheds = 2;
help = 2 * sheds;
C:
for (count=0;;count++)
readin: scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
break;
}
0:
#include<stdio.h>
int main()
{
float a = 10000;
float jy = a, hy = a;
int count = 0;
while (1)
{
jy = jy + a * 0.1;
hy = hy * 1.05;
count++;
if (hy > jy)
{
printf("%d年后,黑夜的投资超过小甲鱼!\n", count);
printf("小甲鱼的投资额是:%.2f\n", jy);
printf("黑夜的投资额是:%.2f\n", hy);
break;
}
}
return 0;
}
1:
#include<stdio.h>
int main()
{
float a = 3500000;
int count = 1;
while (1)
{
a = a * 1.08 - 500000;
if (a <= 0)
{
break;
}
count++;
}
printf("%d年后,小甲鱼败光家产……\n", count);
return 0;
}
2:
#include<stdio.h>
#include <math.h>
int main()
{
int a, b, c, i, count_1, count_2;
a = 1, b = 1, c = 0, count_1 = 1, count_2 = 0;
for (i = 2;i <= 24;i++)
{
while (1)
{
count_1++, count_2++;
if (count_1 == 2)
{
a = a + b;
b = 0;
break;
}
if (count_2 == 2)
{
a = a + c;
c = 0;
break;
}
}
b = b + 1;
c = c + 1;
}
printf("%d", a);
return 0;
}
Sasha_0720
发表于 2022-12-31 19:06:02
0. 20个A。
1. 10个B。
Binzero
发表于 2023-1-3 17:08:54
0. 10个A
1. 0
2.
dyf20030509
发表于 2023-1-3 21:41:49
额
123iooj
发表于 2023-1-4 20:19:05
。
马良ccc
发表于 2023-1-4 21:57:56
s
辕滚滚
发表于 2023-1-5 16:52:10
1
MorganZZL
发表于 2023-1-5 20:28:06
1
waibebabo
发表于 2023-1-5 21:20:53
。
Rem1x
发表于 2023-1-6 19:23:11
1
hhy@03
发表于 2023-1-7 00:05:40
{:5_102:}