Wednesday, October 16, 2019

119. Qbasic program to print the natural numbers from 1 to 5 using SUB...........END SUB.


119. Write a program to print the natural numbers from 1 to 5 using SUB...........END 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