啊
s
0.100
1.11
2.a、b、c
3.14、9、5
4.z = x > 0? x :-x
5.
1
顶
我智商不够格
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;
}
0
666666
{:10_277:}
的风格和健康
签到
我来啦
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);
t't't
{:10_249:}
答案
测试题
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只兔子。
朕想知道
朕想知道