Wednesday, October 16, 2019

107. Qbasic program display : 2, 8, 18, 32..........upto 10 terms.

107. Write a program display : 2, 8, 18, 32..........upto 10 terms.
DECLARE SUB DISP( )
CLS
CALL DISP
END
SUB DISP ( )
FOR I = 1 TO 10
    PRINT I ^ 2 * 2
NEXT I
END SUB

7 comments: