To display the following pattern 3 33 333 3333 33333 (Qbasic Code)

To display the following pattern
3
33
333
3333
33333

  • CLS
    a = 3
    FOR i = 1 TO 5
        PRINT a
        a = a * 10 + 3
    NEXT i
    END

Share :

Facebook Twitter Google+
Back To Top

facebook main

counter

Powered by Blogger.