PROMPT "How old are you"; Answer
IF (Answer = 21) THEN
PRINT "Congratulations! You may be able to rent a"
PRINT "car in some states."
END IF
IF (Answer = 20) THEN
PRINT "You can't rent a car, but you're pre-approved"
PRINT "for 20 different credit cards."
END IF
IF (Answer = 19) THEN
PRINT "You're still officially a teenager."
END IF
IF (Answer = 18) THEN
PRINT "You're old enough to join the military and"
PRINT "fire an automatic rifle, but you still can't"
PRINT "buy beer legally. Figure that one out."
END IF
IF (Answer = 17) THEN
PRINT "You can see R-rated movies on"
PRINT "your own (but you've probably done that for
years)."
END IF
END
Sunday, 6 May 2012
If Then in Liberty BASIC
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment