10838: 概率论与数理统计第一章 第七题

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:3 Solved:0

Description

概率论与数理统计 第一章 概率论的基本概念

P25 习题 第七题, 每小题结果在一行中输出

若结果为实数,请保留小数点后4位。

请在以下代码中添加入答案后提交。

#include <stdio.h>

 

int main()

{

    int a;

    float b;

    while(scanf("%d",&a) != EOF)

 {if (a==1) b="作业答案"; //将“作业答案”替换为该题答案。若有多行,用多行重复输出。

 else 

b=0.0001;    

   printf("%.4f\n",b);}

    return 0;

}

Output

0.0001

Sample Input Copy

0

Sample Output Copy

0.0001