Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

To display the following pattern 1 121 123121 1234321 123454321 (Qbasic Code)

To display the following pattern
    1
    121
    123121
    1234321
    123454321

  •  CLS
    a# = 1
    FOR i = 1 TO 5
        PRINT a# ^ 2
        a# = (a# * 10) + 1
    NEXT i
    END

Share :

X
Back To Top

facebook main

Powered by Blogger.