Saturday, March 10, 2018

Qbasic Program to generate the series 3, 5, 8, 12, 17........15th term


Qbasic Program to generate the series 3, 5, 8, 12, 17........15th term

CLS
a = 3
b = 2
FOR i = 1 TO 15
    PRINT a
    a = a + b
    b = b + 1
NEXT i
END

3 comments: