Friday, February 16, 2018

QBASIC Program to Generate the series 2,4,8,14,22...10th term

QBASIC Program to Generate the series 2,4,8,14,22...10th term
CLS
A = 2
B = 2
FOR I = 1 TO 10
    PRINT A
    A = A + B
    B = B + 2
NEXT I
END

2 comments: