123
111
6
查看参考答案
10
0
14,3,9
1
1
0
666
0.100个
1.10个
2.a,b,c
3.a=5,b=5,c=4
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;
help = 2 * sheds;
}
Else{
sheds = 2;
help = 2 * sheds;
}
/////////
While((scanf("%d", &score))!=0){
if (score < 0)
{
Break;
}
count++;
}
printf("count = %d\n", count);
0.
#include<stdio.h>
int main(void){
float fish=10000,dark=10000;//甲鱼和黑夜
int year;//计算年数
while(fish>=dark){
fish+=10000/0.1;
dark*=(1+0.05);
year++;
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n\
小甲鱼的投资额是:%.2f\n\
黑夜的投资额是:%.2f\n",year,fish,dark);
}
1.
#include<stdio.h>
int main(void){
int year,money;
for(money=400,year=0;money>0;year++){
money-=50;
money=money+money*0.08;
}
printf("%d年后,小甲鱼再次一贫如洗\n",year);
return 0;
}
2.
#include<stdio.h>
#include<math.h>
int main(void){
int t=1;//t用于取反
double pi,divisor,value;//value是每次的数值
for(pi=0,divisor=1,value=1;fabs(value)>1e-8;divisor+=2){
value=1/divisor*t;
pi+=value;
t=-t;
}
printf("%lf",pi*4);
}
3.
#include<stdio.h>
int main(void){
int month,count,count_1,count_a,t;//count是数量,t用于置换
//count_1是生下1个月对数,count_a是能生小兔子的兔子的对数
for(month=1,count=1,count_a=1;month<=24;month++){
count+=count_a;
t=count_a;
count_a+=count_1;
count_1=t;
}
printf("%d",count);
return 0;
}
小甲鱼快给教程涨价吧
0.100
1.10
2.c=5;b=c;a=b;
3.不清楚
4.x>=0? z=x,z=-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:
if(score<0)
{
printf("count=%d\n",count);
}
else {
count++;
scanf("%d",&score);
}
小甲鱼给力嗷!!!
对答案{:10_244:}
dfdsf
1
1
1
66666666666666666666666666666666666666666
1