//this program has been tested :start rand x rand y m answer $x$+$y$ :retry u myanswer=What is $x$+$y$? if $answer$=$myanswer$ echo that's right! woohoo! endif if $answer$!$myanswer$ echo Wrong. Try again. goto retry endif goto start