Write a program to display all prime odd numbers within a range using FOR loop.
Answers
Answered by
2
Explanation:
Using while loop by checking the condition number<=n (value of number is less than or equal to n) - this will execute the loop until the value of number is less than or equal to n. Then, within the loop, we are checking the condition to check whether number is ODD or not, the condition is (number%2 !=
Similar questions
Geography,
1 month ago
Social Sciences,
1 month ago
English,
1 month ago
Science,
2 months ago
Computer Science,
2 months ago
Physics,
9 months ago
Math,
9 months ago