2. What is the range value when you printing,
the odd numbers from 1 to 100 by asing for
statement?
Answers
Answered by
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
Physics,
3 months ago
India Languages,
3 months ago
Science,
7 months ago
Social Sciences,
1 year ago
Math,
1 year ago