Wednesday, October 16, 2019

124. Qbasic program using to display first 19 even numbers.


124. Write a sub program using to display first 19 even numbers.

DECLARE SUB SERIES ( )
CLS
CALL SERIES
END

SUB SERIES
A = 2
FOR I = 1 TO 19
PRINT A,
A = A+ 2
NEXT I
END SUB

No comments:

Post a Comment