c语言编程题 急

[复制链接]
查看11 | 回复3 | 2009-6-10 02:01:21 | 显示全部楼层 |阅读模式
输入一批学生的成绩,输入-1时结束。求最高分,最低分和平均分。

回复

使用道具 举报

千问 | 2009-6-10 02:01:21 | 显示全部楼层
#include#includeusing namespace std;void main(){ float maxscore,minscore,cscore,temp,n; n=0; cscore=0; cout>temp; assert(temp>=-1&&temp>cscore;assert(c...
回复

使用道具 举报

千问 | 2009-6-10 02:01:21 | 显示全部楼层
#includeusing namespace std;int main(){ int max=-10000,min=10000,sum=0,index=0,temp; do{scanf("%d",&temp);if(temp==-1) break;sum +=temp;++inde...
回复

使用道具 举报

千问 | 2009-6-10 02:01:21 | 显示全部楼层
#includeusing namespace std;void main(){int maxscore,minscore,cscore,temp,n;cscore=0;n=0;cout>temp;minscore=temp;
maxscore=t...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行