Write a program to take an input, if number is odd then program should print
message “Odd number.” And if number is even then program should print
“even number”. (Hint : Use Modulus Operator)
Answers
Answered by
0
Answer:
see below
Explanation:
If a number is exactly divisible by 2 then its an even number else it is an odd number. In this article we have shared two ways(Two C programs) to check whether the input number is even or odd. 1) Using Modulus operator(%) 2) Using Bitwise operator.
Answered by
0
Answer:
Explanation:
java or python
Similar questions
Computer Science,
3 months ago
Chemistry,
3 months ago
Computer Science,
3 months ago
Science,
7 months ago
English,
1 year ago