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
Math,
8 months ago
History,
8 months ago
Political Science,
8 months ago
Chemistry,
1 year ago
Sociology,
1 year ago
Environmental Sciences,
1 year ago
Hindi,
1 year ago