screen 0,200,200
rnd ans,100
repeat

*restart
print "0〜100の数値を入力して下さい"
pos ,30:input userans
button "答チェック!",*chk
stop
*chk
if flg != 1{
if userans>ans{
print "それより小さいですよ"
wait 100
CLS
goto *restart
}
if userans==ans{
print "正解!!"
wait 100
flg = 1
}
if userans<ans{
print "それより大きいですよ"
wait 100
CLS
goto *restart
}
}
loop
たとえばコンな感じではだめでしょうか?