wap in java to print all the three digit odd numbers using for loop
Answers
Answered by
2
Answer:
Logic to print odd numbers from 1 to n using if statement
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
Explanation:
*plzz mark me as brainliest*
Similar questions