home *** CD-ROM | disk | FTP | other *** search
- 10 'TWOIF.BAS - A program to demonstrate a one-line IF statement
- 20 'From the GWBT04 (GW-BASIC Tutorial #4) lesson file
- 30 'Gets a number from the user, and prints a message telling if the number is
- 40 'either GREATER THAN or LESS THAN ten
- 50 '
- 60 'Start of main program:
- 70 INPUT "Enter a number between one and twenty";TESTNUMBER
- 80 IF TESTNUMBER < 10 THEN PRINT "Your number was less than ten!" ELSE PRINT "Your number was greater than ten!"
- 90 END
- 100 'End of program - TWOIF.BAS