To display the pattern. 5 54 543 5432 54321 (Qbasic Code)

To display the pattern.
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

Share :

Facebook Twitter Google+
Back To Top

facebook main

counter

Powered by Blogger.