时光与你610
发表于 2019-10-18 17:38:12
1
yuyijie88
发表于 2019-10-18 18:53:30
顶
小甲鱼牛B
发表于 2019-10-19 17:37:44
我智商不够格
杨伟
发表于 2019-10-20 00:36:20
0.10
1.10
2.a.b.c
3.14,5,9
4.if(x>0)
z=x;
else
z=-x;
5.if (size > 12)
{
cost = cost * 1.05;
flag = 2;
bill = cost * flag;
}
else
bill = cost * flag;
if (ibex > 14)
{
sheds = 3;
}
else
sheds = 2;
b: help = 2 * sheds;
scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
}
else
{
count++;continue;
动手#include <stdio.h>
int main()
{
int a;
double b, c;
for(a = 0, b=10000, c=10000; b>=c;a++)
{
b += 10000*0.1;
c += c*0.05;
};
printf("%d",a);
return 0;
}#include <stdio.h>
int main()
{
int a;
double b;
for(a = 1, b=350; b>0;a++)
{
b += b*0.08;
b -= 50;
};
printf("%d",a);
return 0;
}
#include <stdio.h>
int main()
{
double a = 1, b=1;
int i = 1;
do
{
a += 2;
if(i%2)
b += 1/(-a);
else
b += 1/a;
i++;
}while(fabs(1/a)>=pow(10,-8));
printf("%.8lf",4*b);
return 0;
}#include <stdio.h>
int main()
{
int a=1, b=0, c=0;
int i;
for(i=2;i<=24;i++)
{
c=b;
b+=a;
a=c;
}
printf("%d",a+b);
return 0;
}
趴在地上
发表于 2019-10-20 12:23:44
0
bhmz
发表于 2019-10-20 18:51:28
666666
荒于嬉
发表于 2019-10-20 21:12:54
{:10_277:}
amovox
发表于 2019-10-20 22:37:32
的风格和健康
fbczr
发表于 2019-10-21 15:07:56
签到
452795753
发表于 2019-10-21 16:13:39
我来啦
clarawhoever
发表于 2019-10-21 16:48:34
0. 10
1. 10
2. a b c d
3. a= 14 b=5 c=9
4. #include <stdio.h>
int main()
{
int x,z;
scanf("%d",&x);
z= x>=0? x:-x;
printf("z=%d",z);
return 0;
}
5.A int size,flag;
double cost,bill;
scanf("%d",&size);
if(size>12)
{
cost *=1.05;
flag=2;
}
else
bill=cost*flag;
B if(ibex>14)
{
sheds=3}
else
{sheds=2;
help=2*sheds;}
C intscore,count;
while(score >=0)
{
scanf("%d",&score);
count++;}
printf("count=%d\n",count);
7-矩阵革命
发表于 2019-10-21 17:16:04
t't't
suweixuan1998
发表于 2019-10-21 17:20:55
{:10_249:}
棠梨灬煎雪
发表于 2019-10-21 18:03:54
答案
pangzhenyu
发表于 2019-10-22 05:52:40
测试题
0. 10
1. 0
2. c b a
3. a=15b=5 c=10
4. z=x>=0?x:-x;
5.a if (size > 12)
{
cost = cost * 1.05;
}
bill = cost * flag;
flag = 2;
b if (ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2 * sheds;
cif (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
动动手
0.
#include <stdio.h>
#include <math.h>
#define xjy 10000
#define a 0.1
#define b 0.05
int main()
{
float xiaojiayu=10000 ,heiye=10000 ;
int year;
do
{
xiaojiayu = xiaojiayu +xjy *a;
heiye = heiye * (1 + b);
year = year + 1;
}while (heiye<=xiaojiayu);
printf("%d年后,黑夜的投资额超过小甲鱼!\n",year);
printf("小甲鱼的投资额:%.2f\n\
黑夜的投资额:%.2f",xiaojiayu,heiye);
return 0;
}
1. #include <stdio.h>
#include <math.h>
#define rate 0.08
int main()
{
float prize=400;
int year;
do
{
prize = prize * (1 + rate) - 50;
year = year + 1;
}while(prize>0);
printf("%d年后,小甲鱼败光所有家产,再次回到一贫如洗\n",year);
return 0;
}
2.
#include <stdio.h>
#include <math.h>
int main()
{
double pi, sum, n;
int i=-1,j=0,k=1;
do{
n = (1/(2*k-1))*pow(i,j);
sum = sum + n;
j=j+1;
k=k+1;
}while (n>=pow(10,-8));
pi = 4 * sum;
printf("%.7e",pi);
return 0;
}
3.两年后能繁殖出4094只兔子。
寻常233333
发表于 2019-10-22 08:23:29
朕想知道
NightRain
发表于 2019-10-22 11:54:33
朕想知道
城南之朽木
发表于 2019-10-22 22:36:31
1
momeishihang
发表于 2019-10-23 10:03:18
1
1057350762
发表于 2019-10-23 17:23:39
123