To print the series 5, 7, 10, 14, 19 …… upto 10th term. (Qbasic Code)

To print the series 5, 7, 10, 14, 19 …… upto 10th term. (Qbasic Code)
  • CLS
    a = 5
    FOR i = 2 TO 11
        PRINT a
        a = a + i
    NEXT i
    END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.