Monday, September 9, 2019

Write a Qbasic program to display the number series 5, 54, 543, 5432, 54321

Write a Qbasic program to display the number series 5, 54, 543, 5432, 54321

CLS
FOR i = 5 TO 1 STEP -1
    FOR j = 5 TO i STEP -1
        PRINT j;
    NEXT j
    PRINT
NEXT i
END

No comments:

Post a Comment