Wednesday, October 16, 2019

123. Qbasic program using to display first 13 odd numbers.

123. Write a sub program using  to display first 13 odd numbers.

DECLARE SUB SERIES ( )
CLS
CALL SERIES
END

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

1 comment: