0.10个
1.11个
2.abc
3.a =4,b=3,c=9
4.jdz=x>0?x:-x;z=jdz;
5.
A.
if(size>12)
{
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.100
1.10
2.
3.3 3 8
4.if(x>=0){
z=x;
}
else {
z=-x;
}
1111111111111111
{:9_222:}
答案
1
111
1
1
{:7_112:}
ddd
小甲鱼太棒了
#include<stdio.h>
#include<math.h>
int main()
{
double i, j, a, k = -1, m = 0;
for(i = 1, j = 1, a = 0; i / j > pow(10, -8); j += 2, m++, k = -1)
{
k = pow(k, m);
a += (i / j) * k;
}
printf("%.8f", a * 4);
return 0;
}
miaomaio 发表于 2016-3-21 16:50
动动手第3题错了吧应该是:
a = 2, b = 2;因为一对兔子有2只
参考答案算出的应该是多少对兔子吧
你应该理解错了,每个月生,新出生的要两个月才能生。
h
1
查看答案
0
0.90次
1.0个
2.a
3.c=9 b=5 a=14
4.
if (a>=0)
{
printf("%f",a);
}
else
{
printf("%f",-a);
}
5.
if (size>12)
{
cost*=1.05;
flag=2;
}
bill=cost*flag;
if (ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2 * sheds;
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
0.
#include <stdio.h>
int main()
{
float jiayu=10000;
float heiye=10000;
float money=10000;
int i;
for (i=1;jiayu>=heiye;i++)
{
jiayu=money*0.1*i+money;
heiye=heiye*1.05;
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n",i-1);
printf("小甲鱼的投资额是:%.2f\n",jiayu);
printf("黑夜的投资额是:%.2f\n",heiye);
return 0;
}
1.
#include <stdio.h>
int main()
{
float money=400;
int year;
for (year=1;money>=0;year++)
{
money*=1.08;
money-=50;
}
printf("%d年后败光家产",year-1);
return 0;
}
2.
对对答案