Syntax of nested loop in Q Basic
Answers
Answered by
1
top:
INPUT "Input Non-Negative # greater than 0 : ", number
IF number <= 0 THEN GOTO top:
FOR i = number TO 1 STEP -1
FOR j = 1 TO i
PRINT j; " ";
NEXT j
PRINT
NEXT i
INPUT "Input Non-Negative # greater than 0 : ", number
IF number <= 0 THEN GOTO top:
FOR i = number TO 1 STEP -1
FOR j = 1 TO i
PRINT j; " ";
NEXT j
NEXT i
Similar questions