学生成绩管理
2016-11-30 09:30
120 查看
#include <stdio.h> double HighScore; /*全局变量,最高分*/ double LowScore; /*全局变量,最低分*/ double SumScore; /*全局变量,总分*/ double AverageScore; /*全局变量,平均分*/ void calcscore(int n) { int i; double j; SumScore=0; HighScore=-1; LowScore=100; for(i=1;i<=n;i++) { scanf("%lf",&j); if(j>HighScore) { HighScore=j;} if(j<LowScore) { LowScore=j;} SumScore+=j; } AverageScore=SumScore/n; } /*函数声明*/ int main() { int n; scanf("%d",&n); calcscore(n); printf("%g %g %g %g\n",HighScore,LowScore,SumScore,AverageScore); return 0; }
相关文章推荐
- 学生成绩管理系统
- lua 自学笔记 练习篇-学生成绩管理系统之教师文档
- 学生成绩管理系统(C语言)
- 学生成绩管理
- [置顶] 数据结构课程设计-学生成绩管理系统
- 课程设计———学生成绩管理系统
- 数据结构课程设计---学生成绩管理系统
- C_综合使用数组实现简单的学生成绩管理系统
- [数据结构实验]学生成绩管理
- 学生成绩管理系统
- 《C语言 学生成绩管理系统》
- 我要写一个学生成绩管理系统
- 简易版学生成绩管理系统(数组版和链表版都有)
- 附录 学生成绩管理系统数据库
- C语言学生成绩管理系统小设计
- java学生成绩管理系统设计与实现
- 《C语言编写 学生成绩管理系统》
- C语言项目--教师信息/学生成绩管理系统
- shell编程实现学生成绩管理系统
- 学生成绩管理系统设计