101. Write a program to print the
following series 2, 8, 18, 32, 10th terms using SUB ……………. END SUB
DECLARE SUB DISP( )
CLS
CALL DISP
END
SUB DISP ( )
A = 2
B = 6
FOR I = 1 TO 10
PRINT A
A = A + B
B = B + 4
NEXT I
END
SUB
No comments:
Post a Comment