12
看看
100
0次
a,b,c
a=(4,15),b=5,c=15
if a;else b;
if a;sheds=2;else b;
while(score>=0)readin;count++; stage2;
1
校对
小甲鱼yyds
看看
0. 10次
1. 10个B
2. a
3. a = 15, b = 4, c = 9
4. z = x < 0 ? -x : x
5.
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. done
#include <stdio.h>
#include <math.h>
int main()
{
int year;
float benjin = 10000.00;
float x, y;
float x_interest;
float y_interest;
float x_rate = 0.10, y_rate = 0.05;
x = 10000.00, y = 10000.00;
for (year = 0; x >= y; year ++)
{
x = benjin + (benjin * x_rate) * year;
y = benjin * pow((1+y_rate), year);
if (y > x)
{
break;
}
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n", year);
printf("小甲鱼的投资额是:%.2f\n", x);
printf("黑夜的投资额是:%.2f\n", y);
return 0;
}
1. not sure why dead circle...
#include <stdio.h>
#include <math.h>
int main()
{
int year;
double prize = 4000000.00;
double expense = 500000.00;
double rate = 0.08;
for (year = 0; prize > 0; year ++)
{
prize = prize - expense;
if (prize <= 0)
{
break;
}
else
{
prize = prize * pow((1+rate), year);
}
}
printf("%d年后小甲鱼败光了所有的家产,再次回到一贫如洗。\n", year);
return 0;
}
2. will do
3. will do
a
0.无数个
1.11
2.a b c
3.a=21
b=10
c=4
4.|x|>0? z=|x|:z!=|x|
5.if(size>12)
{
cost =cost *1.05;
}
bill =cost * flag;
if (ibex >14)
{
sheds =3;
}
sheds = 2;
help = 2*sheds;
redin: scanf("%d",&score);
if(score <0)
{
printf("count =%d\n,count);
}
count++;
goto readin;
1
#include<stdio.h>
#include<math.h>
int main()
{
int x=0,y=0,year=2;
while(x>=y)
{
x=pow(10000*0.1,year);
y=pow(10000+10000*0.05,year);
year++;
}
printf("%d年后,黑夜的投资额超过小甲鱼!\n",year);
printf("小甲鱼的投资额是%.2f",x);
printf("黑夜的投资额是:%.2f",y);
return 0;
}
今天又是元气满满的一天呢
来啦来啦
11
{:5_109:}
1
{:5_102:}
1
看看