📄 exp04_05.c
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -