clears=0 input "请打分:" to xif x>=0 and x<=10s=s+xmax=xmin=xfor i=2 to 7input "请打分:" to xif x<0 or x>10loopendifs=s+xif x>max max=x endifif x min=x endifnext is=s-max-mina=s/5? "去掉最高分和最低分后,选手平均分是"+alltrim(str(a))endifloop应该放在循环里吧