第一题:
clear
input "输入第1个数:" to n
store n to da,xiao,s
for i=2 to 20
"输入第"+STR(i,2)+"个数:"
input to n
da=max(da,n)
xiao=min(xiao,n)
s=s+n
endfor
"最大值:",da,"最小值:",xiao,"平均值:",s/20
return
第二题:
clear
"水仙花数有:"
for a=1 to 9
for b=0 to 9
for c=0 to 9
abc=a*100+b*10+c
if abc=a^3+b^3+c^3
abc
endif
endfor
endfor
endfor
return