Computer Science, asked by sandyyd4590, 1 year ago

Syntax of nested loop in Q Basic

Answers

Answered by Naresh5551
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
Similar questions