Computer Science, asked by barath59, 5 months ago

2. What is the range value when you printing,
the odd numbers from 1 to 100 by asing for
statement?​

Answers

Answered by mdniaz9193
2

Answer:

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

(2)= Run a loop from 1 to N , increment loop counter by 1 in each iteration. ...

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

Hope this answer helpful for you

Similar questions