if a>0 and a<60 then
label1.caption="不及格"
else
if a>=60 and a<=90 then
label1.caption="成绩优良"
else
if a>90 and a<=100 then
label1.caption="成绩优秀"
else
label1.caption="输入错误"
endif
endif
endif