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

To display the pattern.
54321
5432
543
54


  • CLS
    FOR i = 1 TO 5
        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.