To display the pattern. 1/2 2/3 3/4 …… ….. 10th term. (Qbasic Code)

To display the pattern.
1/2
2/3
3/4
……
….. 10th term.

  •  CLS
    a = 1
    b = 2
    FOR i = 1 TO 10
        PRINT a; "/"; b
        a = a + 1
        b = b + 1
    NEXT i
    END

Share :

Facebook Twitter Google+
Back To Top

facebook main

counter

Powered by Blogger.