千晓夜 发表于 2019-7-23 17:17:41

答案

LIHAOJIEAQ 发表于 2019-7-24 21:54:47

0、90个
1、10个
2、a,b,c
3、a=14,b=4,c=10
4、x=-x?z:
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);
}
0、#include<stdio.h>

int main()
{
        float i=10000,j=10000;
        int count=0;
       
        while(i<=j)
        {
                i=i*0.05+i;
                j=10000*0.1+j;
                count++;
        }
       
        printf("%d年后,黑夜的投资额超过小甲鱼!\n",count);
        printf("小甲鱼的投资额是:%.2f\n",j);
        printf("黑夜的投资额是:%.2f\n",i);
       
        return 0;
}
1、#include<stdio.h>

int main()
{
        float i=4000000;
        int count=0;
       
        while(i>0)
        {
                i=(i-500000)*1.08;
                count++;
        }
       
        printf("%d年之后,黑小甲鱼败光了所有的家产,再次回到一贫如洗......\n",count);
       
        return 0;
}
2、#include<stdio.h>
#include<math.h>

int main()
{
        double Pi=2,i=1,j=1;
       
        while(fabs(i)<pow(10,-8))
        {
                i=1/j;
                i=-i;
                Pi=Pi+i;
                j=j+2;
        }
       
        printf("Pi的近似值为:%.7f",4*Pi);
       
        return 0;
}
3、#include<stdio.h>
#include<math.h>

int main()
{
        long long count=2;
       
        count=pow(2,32);
       
        printf("共有%llu对兔子\n",count);
       
        return 0;
}

Jormungandr 发表于 2019-7-25 22:24:27

100,0,a,14

丿pigper丨阿奕 发表于 2019-7-25 23:50:12

0, 10
1, 11
2, c, b, a,
3, c = 10, b = 6, a = 16
4, z = x>0?x:-x;
5,if (size > 12)
{
   cost = cost * 1.05;
   flag = 2;
   bill = cost * flag;
}
else
{
    bill = cost * flag;
}

L_yq 发表于 2019-7-26 19:53:51

daan

李柱好 发表于 2019-7-26 22:19:30

大难

chengzi_z 发表于 2019-7-27 10:26:05

{:9_225:}

mistperson 发表于 2019-7-27 11:34:16

11111111111111111111111

叔同侧面 发表于 2019-7-27 15:35:10

第一阶段了~~~

今天依然美好 发表于 2019-7-28 01:33:37

。。

mistperson 发表于 2019-7-28 08:17:32

1

做梦好啊 发表于 2019-7-28 15:36:36

对答案~

18050803281 发表于 2019-7-28 19:55:53

hui fu

Cliugang 发表于 2019-7-28 23:02:11

参考答案

hisaya_hanyu 发表于 2019-7-29 14:41:06

答案

井井桐桐 发表于 2019-7-29 15:11:21

111

喜小羊 发表于 2019-7-29 23:36:30

I love FishC.com!

2491557246 发表于 2019-7-31 05:47:49

的风格和的

lpq999 发表于 2019-7-31 17:00:32

作者吱吱吱吱吱吱吱吱吱吱吱吱吱吱吱吱吱吱吱吱

Juejiu66 发表于 2019-8-1 11:43:13

m
页: 44 45 46 47 48 49 50 51 52 53 [54] 55 56 57 58 59 60 61 62 63
查看完整版本: S1E16:拾遗 | 课后测试题及答案