Computer Science, asked by yuvrajsahu762, 6 months ago

write a qbasic program to print odd number from 1 to 3 using any loop condition​

Answers

Answered by preet563462
0

Answer:

Input upper limit to print odd number from user. Store it in some variable say N .

Run a loop from 1 to N , increment loopcounter by 1 in each iteration. ...

Inside the loop body check odd condition i.e. if a number is exactly divisible by 2 then it is odd.

Answered by amritraj9117
0

Answer:

Logic to print odd numbers from 1 to n using if statement

Input upper limit to print odd number from user. Store it in some variable say N .

Run a loop from 1 to N , increment loop counter by 1 in each iteration. ...

Inside the loop body check odd condition i.e. if a number is exactly divisible by 2 then it is odd.

Explanation:

please mark me as brainlist answer

Similar questions