exp04_05.c

来自「《C语言程序设计教程、实验与练习》 源文件下载」· C语言 代码 · 共 18 行

C
18
字号
#include <stdio.h>

main()
{
 int score=0,num=0;
 float total=0;

 printf("input the score:");
 scanf("%d",&score);
 while(score<=100)
 {
  num++;
  total+=score;
  printf("input the score:");
  scanf("%d",&score);
   }
 printf("the average score is %5.1f",total/num);
 }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?