Conditional logic lets your program make decisions based on data. QBasic uses standard IF...THEN...ELSE statements for this.
CLS FOR i = 1 TO 5 PRINT "This is line number"; i NEXT i END Use code with caution. How it works: The variable i starts at 1. The computer prints the text and the current value of i . qbasic programming for dummies pdf better
(Style: 8/10)
: Uses a percent sign ( % ). Example: age% = 25 Conditional logic lets your program make decisions based
IF...THEN...ELSE...END IF controls program flow. qbasic programming for dummies pdf better
The series, particularly Douglas Hergert’s QBasic Programming for Dummies
Conditional logic lets your program make decisions based on data. QBasic uses standard IF...THEN...ELSE statements for this.
CLS FOR i = 1 TO 5 PRINT "This is line number"; i NEXT i END Use code with caution. How it works: The variable i starts at 1. The computer prints the text and the current value of i .
(Style: 8/10)
: Uses a percent sign ( % ). Example: age% = 25
IF...THEN...ELSE...END IF controls program flow.
The series, particularly Douglas Hergert’s QBasic Programming for Dummies