To display the pattern. 50 48 50 46 48 50 44 46 48 50 42 44 46 48 50 (Qbasic Code)

To display the pattern.
50
48 50
46 48 50
44 46 48 50
42 44 46 48 50

  • CLS
    x = 50
    FOR i = 1 TO 5
        y = x
        FOR j = 1 TO i
            PRINT y;
            y = y + 2
        NEXT j
        PRINT
        x = x - 2
    NEXT i
    END

Share :

Twitter

Random Posts

Back To Top

facebook main

counter

Powered by Blogger.