Qbasic Programming: For Dummies Pdf
RANDOMIZE TIMER secret = INT(RND * 100) + 1 DO INPUT "Guess (1-100): ", guess IF guess > secret THEN PRINT "Too high" IF guess < secret THEN PRINT "Too low" LOOP UNTIL guess = secret PRINT "You got it!"
PRINT "Hello, World!" END
REM : Used for "Remarks" or comments. Anything following this command is ignored by the computer and is just for the programmer to read. qbasic programming for dummies pdf
: You can assign values using the = sign. For example, X = 5 sets a variable. You can then use those variables in equations, such as Y = X * 10 , which would result in Y being 50. RANDOMIZE TIMER secret = INT(RND * 100) +