CLEAR
n=2
input "请输入第1数:" to x
nmax=x
nmin=x
DO WHILE n<=10
input "请输入第"+STR(n,2)+"数:" to x
IF x>nmax
nmax=x
ENDIF
IF x<nmin
nmin=x
ENDIF
n=n+1
ENDDO
?"最大数:",nmax
?"最小数:",nmin
CLEAR
n=2
input "请输入第1数:" to x
nmax=x
nmin=x
DO WHILE n<=10
input "请输入第"+STR(n,2)+"数:" to x
nmax=MAX(nmax,x)
nmin=MIN(nmin,x)
n=n+1
ENDDO
?"最大数:",nmax
?"最小数:",nmin