Write a QBASIC program to print first 10 Odd number
Answers
Answered by
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
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