Wednesday, October 16, 2019

97. Qbasic Program o print 1, 8, 27, 64.....upto 10th term

97. Write a program to print 1, 8, 27, 64.....upto 10th term.

DECLARE SUB SERIES ( )
CLS
CALL SERIES
END

SUB SERIES
FOR I = 1 TO 9
PRINT I ^ 3
NEXT I
END SUB

5 comments: