电脑程序编写

[复制链接]
查看11 | 回复1 | 2007-9-11 21:31:02 | 显示全部楼层 |阅读模式
这样简单的程序都要找人做,吴语了
回复

使用道具 举报

千问 | 2007-9-11 21:31:02 | 显示全部楼层
pascal:1、program fs;var score:array[1..100] of real;num:array[1..100] of integer; i,j,n:integer;ave,s:real;begin read(n);for i:=1 to n do begin read(num,score);s:=s+score;end;ave:=s/n;for i:=1 to n do beginif score>ave then write(num,#32,'above',#32:5);if score=ave then write(num,#32,'equal',#32:5);if score<ave then write(num,#32,'below',#32:5);end;end.
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行