Sunday, March 5, 2017

Write a QBASIC Program to generate the series: 315, 270, 215, 150 ........ upto 10th term.

Write a QBASIC Program to generate the series: 315, 270, 215, 150 ........ upto 10th term.
CLS
a = 315
b = 45
FOR i = 1 TO 10
    PRINT a
    a = a - b
    b = b + 10
NEXT i
END

No comments:

Post a Comment