先图一时之快~
{:5_90:}
看一下{:5_90:}
{:5_91:}
0. 报错,j没有初始化
1. 0个
2.a
3. b = 3, c = 9, a = 14
4. if (x < 0){
z = -x;
}
else{
z = x
}
5.
A.
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
vvvvv
正在学习中
参考答案
100 10
朕想知道
看看结果
动动手答案:
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
int main(){
float principal=4000000;
int year=0;
while(1){
principal=(principal*0.08)+principal;
principal-=500000;
if(principal>500000){year++;
printf("%f->%d\n",principal, year);}
else{break;}
}
}
int main(){
int bit=1;
double res=0,den=1;
double num;
double a=pow(10, -8);
while(1){
num=1/den;
if(fabs(num)>a){
if(bit%2!=0){
bit++;
}
else{num=-num;bit++;}
res+=num;
den+=2;
}
else{break;}
}
printf("pi的值为%.7f\n", 4*res);
}
int main(){
unsigned long long res=0,a=0,b=2;
for(int i=1;i<=24;i++){
res=a+b;
a=b;
b=res;
printf("第%d个月可繁殖%llu对兔子\n",i,res/2);
}
}
{:5_90:}
越来越难了
答案
呼哈
哈哈哈哈小甲鱼
0.10
1.0
2.c=5 , b=c , a=b
3.
4.
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;
}
do{
++count
scanf("%d", &score);
if (score < 0)
{
printf("count = %d\n", count);
break;
}
}while(1);
6.
回复
测试题:
0、110
1、11
2、c
3、a=13,b=3,c=8
4、z=x>=0?x:-x
5、A:
if(size>12)
{
cost *= 1.05;
flag = 2;
}
bill = cost*flag;
B:
if(ibex > 14)
{
sheds = 3;
}
sheds = 2;
help = 2*shelds;
C:
while(1)
{
scanf("%d",&score);
if(score < 0)
{
printf("count = %d\n',count);
}
count++;
}