虫狐子
发表于 2020-9-22 18:40:11
1
Mememe
发表于 2020-9-22 23:21:00
。
指尖轻纱
发表于 2020-9-22 23:51:00
难
1165004288
发表于 2020-9-23 13:17:01
1
默默黑
发表于 2020-9-23 14:59:25
lklkl
CharlesSun
发表于 2020-9-23 15:54:02
1
WwwwYI
发表于 2020-9-23 16:51:03
111
栖兮子
发表于 2020-9-23 22:59:55
0
神丶上单
发表于 2020-9-24 10:58:08
1
ikaros274556330
发表于 2020-9-24 14:08:58
#include <stdio.h>
#include <math.h>
void test_1() {
int i = 5;
while(i++) {
if (i>10) {
goto lable;
}
}
lable :
printf("i值:%d",i);
}
// 0 10次
// 1 10次
// 2 a
// 3 a =9 b = 5 c = 9
// 4 z = pow(pow(z,2),1.0/2)
void dds_0() {
double jiayu=10000,heiye = 10000;
int year = 0;
while(1) {
jiayu = jiayu + 10000*0.1;
heiye = heiye + heiye*0.05;
year++;
if(jiayu<heiye) {
goto show_result;
}
}
show_result:
printf("%d年后\n",year);
printf("小甲鱼:%.3f\n",jiayu);
printf("黑夜:%.3f\n",heiye);
}
void dds_1() {
double jiayu = 4000000;
int year = 0;
while (jiayu>0) {
jiayu = (jiayu+jiayu*0.08)-500000;
year++;
}
printf("%d年后,破产\n",year);
}
void main() {
// test_1();
// dds_0();
dds_1();
}
疯七天南
发表于 2020-9-25 08:33:25
0
10个
1
0个
2
a,b,c
3
((x<0 )&& (z=-x)) || (z=x)
4
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>
#define NUM 10000
int main()
{
double x,y;
int i=0;
x=y=NUM;
while(x>=y)
{
x+=NUM*0.1;
y*=1.05;
i++;
}
printf("小甲鱼%d年后资产被黑夜超过\n",i);
printf("小甲鱼的资产:%.2lf\n",x);
printf("黑夜的资产:%.2lf\n",y);
}
1
#include <stdio.h>
#define NUM 10000
int main()
{
float rest=400.0;
int i=0;
while (rest>50)
{
rest-=50;
rest*=1.08;
i++;
}
printf("小甲鱼%d年后花光",i+1);
}
2
#include<stdio.h>
#include<math.h>
int main()
{
double pi4;
int i=0,k=1;
do
{
pi4+=k*1.0/(2*i+1);
i++;
k=-k;
}while(1.0/(2*i+1)>1e-8);
printf("%.7lf",4*pi4);
}
3
int main()
{
int f1 ,f2,sum;
f1=1;
f2=1;
for (int i=0;i<24;i++)
{
sum=f1+f2;
f1=f2;
f2=sum;
}
printf("%d",sum);
}
wanjian1990
发表于 2020-9-25 12:23:55
+1
386181641
发表于 2020-9-25 19:33:47
1
elapstjtl
发表于 2020-9-26 13:48:36
123
gonorth
发表于 2020-9-26 14:03:10
Man
ijiuhoo
发表于 2020-9-26 17:18:21
{:5_103:}
可大仙
发表于 2020-9-27 10:29:25
t t t
lengxuewx
发表于 2020-9-27 13:12:08
123
幻夜s
发表于 2020-9-27 18:37:13
1
Risen
发表于 2020-9-27 19:25:32
1