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
CLS
FOR I = 1 TO 8
PRINT I ^ 3,
NEXT I
END
DECLARE SUB SERIES()
CLS
CALL SERIES
END
SUB SERIES
FOR I = 1 TO 8
PRINT I ^ 3,
NEXT I
END SUB
0 Comments