To display the pattern. 0 12 345 6789 (Qbasic Code)

To display the pattern.
0
12
345
6789

  • CLS
    n = 0
    FOR i = 1 TO 4
        FOR j = 1 TO i
            PRINT n;
            n = n + 1
        NEXT j
        PRINT
    NEXT i
    END

Share :

Facebook Twitter Google+
Back To Top

facebook main

counter

Powered by Blogger.