9262
来源:互联网 发布:windows美化大师电脑 编辑:程序博客网 时间:2024/05/01 10:05
/*输入5个人的成绩,然后输出他们的平均值*/
#include<stdio.h>
int main()
{
int score[5];
int totalscore=0;
int i;
printf("input the scores of five students:\n");
for(i=0;i<5;i++)
{
scanf("%d",&score[i]);
totalscore+=score[i];
}
printf("average score is %f\n",totalscore/5.0);
return 0;
}
#include<stdio.h>
int main()
{
int score[5];
int totalscore=0;
int i;
printf("input the scores of five students:\n");
for(i=0;i<5;i++)
{
scanf("%d",&score[i]);
totalscore+=score[i];
}
printf("average score is %f\n",totalscore/5.0);
return 0;
}
0 0
- 9262
- 正确理解Mysql的列索引和多列索引
- 理解TCP序列号(Sequence Number)和确认号(Acknowledgment Number)
- hanoi汉诺塔问题
- 最长公共子序列详解及代码实现
- 通配符和正则表达式的区别
- 9262
- java 单例模式
- 编译
- 出现This version of the rendering library is more recent than your version of ADT plug-in. Please upda
- ViewSwitcher
- 用Maven插件生成Mybatis代码
- 【Python开发】python使用urllib2抓取防爬取链接
- C语言的NULL和C++的NULL不同
- 用c++编写一个简单的登录系统