home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / tutor / pro11 / twoif.bas < prev   
Encoding:
BASIC Source File  |  1990-09-19  |  495 b   |  11 lines

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