Wednesday, October 16, 2019

QBASIC to print Natural no. from 1 to 5 using SUB

DECLARE SUB SERIES ( )
CLS
CALL SERIES
END

SUB SERIES ( )
FOR I = 1 TO 5
PRINT I
NEXT I
END SUB

No comments:

Post a Comment