while num<>10 num=rnd(1)*20 print num if num=10 then exit while print rnd(1)*20 wend