Wednesday, June 10, 2009

Basic IF

the if statement tells you if your statement is wrong or right

it can be use as a calculator

the guessing my number tells you if you have guessed a number right and if you guessed wrong then you have to keep guessing.

ex
10 sys ("command.com /c cls")
12 print "guess a number from 1-10"
14 input num1
20 IF (num1) = 9 THEN GOTO 50
30 PRINT " tight"
40 GOTO 60
50 PRINT " you got lucky "
60 end

No comments:

Post a Comment