微凉 发表于 2016-10-13 14:13:32

{:9_241:}

九州天象 发表于 2016-10-16 21:14:16

先图一时之快~

chopsticks 发表于 2016-10-16 22:48:47

{:5_90:}

newu 发表于 2016-10-17 16:44:55

看一下{:5_90:}

tickortreat 发表于 2016-10-18 12:55:06

{:5_91:}

number59 发表于 2016-10-18 21:53:37

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;

controlv 发表于 2016-10-20 23:49:09

vvvvv

panqiang 发表于 2016-10-21 22:43:21

正在学习中

≯inzi 发表于 2016-10-25 19:02:27

参考答案

骷髅丶SY 发表于 2016-10-26 19:53:54

100 10

梦中季节 发表于 2016-10-29 11:06:44

朕想知道

菲常可乐 发表于 2016-10-31 19:49:41

看看结果

富友郑鹏展 发表于 2016-11-1 15:21:55

动动手答案:
#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);
    }


}

shuangzzhiyue 发表于 2016-11-8 10:11:04

{:5_90:}

hmilyvivi 发表于 2016-11-10 15:00:33

越来越难了

司晓硕 发表于 2016-11-12 00:06:13

答案

伟大的玥玥 发表于 2016-11-18 14:33:35

呼哈

six_mao 发表于 2016-11-18 23:30:00

哈哈哈哈小甲鱼

hucs2542 发表于 2016-11-23 10:57:54

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.

驯鹿妖妖 发表于 2016-11-24 19:42:46

回复
页: 1 2 3 [4] 5 6 7 8 9 10 11 12 13
查看完整版本: S1E16:拾遗 | 课后测试题及答案