MCGA 发表于 2023-7-14 16:04:40

b

woaiwomin 发表于 2023-7-16 16:27:12

学完这一课,准备停下来花一周时间消化好,再继续学

wangqingbo 发表于 2023-7-16 17:22:06

加油,努力

Zimeng 发表于 2023-7-19 14:42:52

kj

J_ieie 发表于 2023-7-20 17:17:58

1

darkerblue 发表于 2023-7-21 15:22:12

是否得分

boyi-y 发表于 2023-7-24 11:06:47

0.
10次
1.
0次
2.
a,b,c
3.
a=14,b=5,c=9
4.
x<0 ? z=x*-1 : z=x;
5.

if (size > 12)
    {
      cost = cost * 1.05;
      flag = 2;
    }
    else
    {
      bill = cost * flag;
    }


if (ibex > 14)
    {
      sheds = 3;
    }
    else
    {
      sheds = 2;
      help = 2 * sheds;
    }


if (score < 0)
{
      printf("count = %d\n", count);
}

else
{
    count++;
    scanf("%d", &score);
}

动动手
0.
#include<stdio.h>

int main()
{
    int year;
    double x,h;
   
    for(year=0,x=10000, h=10000;h<=x;year++)
    {
      
      x = x+10000*0.1;
      h = h+h*0.05;
      
    }
    printf("%d年后,黑夜的投资额超过小甲鱼!",year);
    printf("小甲鱼:%f",x);
    printf("黑夜:%f",h);
    return 0;
}

1.
#include<stdio.h>

int main()
{
    double m;
    int year;
    for(year=0,m=4000000;m>0;year++)
    {
      m = (m-500000) + (m-500000) * 0.08;
         
    }
    printf("%d",year);
    return 0;
}

2.
#include<stdio.h>

int main()
{
    double y,pi;
    long long x;
    for(y=1,x=3;fabs(1.0/x)>=1e-8;x+=4)
    {
      y=y-1.0/x+1.0/(x+2);
    }
    pi = y * 4;
   
    printf("%.8f",pi);//精度定到7位的话最后一位会四舍五入,所以定到8位精度
    return 0;
}

3.
不会做T T

梦想中的乌托邦 发表于 2023-7-25 17:02:32

1

17856563101 发表于 2023-7-26 10:28:31

让朕看看

代码的末日 发表于 2023-7-26 19:22:32

dawda

yangchuyu 发表于 2023-7-31 21:18:26

{:5_109:}

向上慢慢爬 发表于 2023-8-1 16:46:06

1

wendaos 发表于 2023-8-2 15:28:50

10
0
5
14
4
10

前必须采取 发表于 2023-8-3 11:22:25

1

Horizon_233 发表于 2023-8-5 09:32:27

ok

冰激凌太烫 发表于 2023-8-6 15:36:13

//

afxy 发表于 2023-8-8 16:37:31

10
10
c
a = 5b =5   c =9
x > 0? x; -x;
if(size > 12){
cost = 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);

迈但 发表于 2023-8-8 17:23:55

打卡

编程终结者 发表于 2023-8-9 00:02:10

.

th????? 发表于 2023-8-9 17:49:01

{:10_277:}
页: 253 254 255 256 257 258 259 260 261 262 [263] 264 265 266 267 268 269 270 271 272
查看完整版本: S1E16:拾遗 | 课后测试题及答案