QBASIC SERIES : 1,5,25,125...10TH TERM

QBASIC SERIES : 1,5,25,125...10TH TERM



CLS
 A = 1
 FOR I = 1 TO 10
 PRINT A,
 A = A * 5
 NEXT I
 END

USING SUB


DECLARE SUB SERIES()
 CLS
 CALL SERIES
 END
 
 SUB SERIES
 A = 1
 FOR I = 1 TO 10
 PRINT A,
 A = A * 5
 NEXT I
 END SUB

Post a Comment

0 Comments