To display the pattern. 5 44 333 2222 11111 (Qbasic Code)

To display the pattern.
5
44
333
2222
11111
  • CLS
    FOR i = 5 TO 1 STEP -1
        FOR j = 5 TO i STEP -1
            PRINT i;
        NEXT j
        PRINT
    NEXT i
    END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.