QBASIC SERIES : 1,8,27.....512

QBASIC SERIES : 1,8,27.....512


CUBE OF FIRST 8 NATURAL NUMBERS


CLS
 FOR I = 1 TO 8
 PRINT I ^ 3,
 NEXT I
 END

USING SUB


DECLARE SUB SERIES()
 CLS
 CALL SERIES
 END
 
 SUB SERIES
 FOR I = 1 TO 8
 PRINT I ^ 3,
 NEXT I
 END SUB

Post a Comment

0 Comments