Computer Science, asked by singhrishibha2, 4 months ago

wap a progran in q basic to dislpay all the od numbers from 10 to 1

Answers

Answered by anindyaadhikari13
2

Question:-

Write a program in QBASIC to display all the odd numbers from 10 to 1.

Program:-

CLS

FOR I = 10 TO 1 STEP -1

IF I MOD 2=1 THEN

PRINT I+" "

END IF

NEXT I

END

Similar questions