非诚勿扰云晓琳结婚照:填空题,使下列程序完善

来源:百度文库 编辑:高校问答 时间:2024/05/02 21:05:58
填空题,使下列程序完善
下面的程序将n个学生的英文成绩从键盘输入,按0—59分、60—69分、70—79分、80—89分和90—100分分组统计人数。
const n=20;
var i,k:integer;
s:array[1..5]of integer;
a:array[l..n]of integer;
begin
for i:=1 to _____ do
s[i]:=0;
for i:=1 to _____ do
begin
_______________;
if a[i]>=90 then k:=1
else if a[i]>=80 then k:=2
else if a[i]>=70 then k:=3
else if a[i]>=60 then k:=4
else k:=5;
s[k]:=_______
end;
for i:=1 to 5 do
write(a[i]:4);
writeln
end.

5
n
read(a[i])
s[k]+1

楼上的:一共四个空耶!

20
20
5