Computer Science, asked by suseelamadhuri0, 7 months ago

Write a QBASIC program to print first 10 Odd number​

Answers

Answered by anindyaadhikari13
21

Question:-

Write a QBASIC program to print first 10 odd numbers.

Program:-

CLS

REM "QBASIC PROGRAM"

LET A=1

FOR I=1 TO 10 STEP 1

PRINT A

A=A+2

NEXT I

END

Answered by brainlysme9
1

QBASIC program to print first 10 Odd number:

DECLARE SUB SERIES()

CLS

CALL SUB SERIES

END

SUB SERIES()

A=1

FOR I=1 TO 10

PRINT A

A=A+2

NEXT I

END SUB

Similar questions