键盘输入N个学生的分数,将N个学生的分数按从大到小的顺序打印出来。
(此程序为BASIC语言编写)
CLS
INPUT N
DIM A(N)
FOR I=1 To___(56)___
INPUT___(57)___
NEXT___(58)___
PRINT
FOR I=1 TO N—1
FOR J=I+1 TO___(59)___
IF A(I)___(60)___A(J)THEN SWAPA(I),A(J)
NEXT J
NEXT I
FOR I=1 TO N
PRINT A(I),
NEXT I
END