Thursday, June 11, 2009

assignment 3

10 sys ("command.com /c cls")
11 print " what grade are you in?"
12 input num1
13 if (num1)= 9 then goto 40
15 if (num1)= 10 then goto 60
17 if (num1)= 11 then goto 80
19 if (num1)= 12 then goto 100
40 print " freshmen? sucks to be you right now"
50 goto 160
60 print " sophmore? have fun"
70 goto 160
80 print " junior? you have so much to do"
90 goto 160
100 print " senior? have fun!!!"
110 goto 160
160 end

No comments:

Post a Comment