Wednesday, June 10, 2009

Basic if

The if statement on basic states if the problem that you wrote is true or false. When you write a problem it will either say "the if statement is true" or it will say "the if statement if false".

It can be used as a calculator. It can be used in businesses that need to add up there money. It can also be used for kids that need to work that require if statements.

A working if statement- its a guessing the number if statement

Assignment 5

10 sys("command.com/c cls")
20 print "Guess a number between 1-10"
30 input Num1
40 IF num1 = 7 then goto 70
50 print "Sorry you got it wrong"
60 goto 20
70 print "Yay you got it right!!!"
80 end

No comments:

Post a Comment