To display the pattern. 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25

To display the pattern. (Qbasic Code)
1
2 4
3 6 9
4 8 12 16
5 10 15 20 25

CLS
FOR i = 1 TO 5
    FOR j = 1 TO i
        x = i * j
        PRINT x;
    NEXT j
    PRINT
NEXT i
END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.