write a program to determine a number press on the keyboard is even or odd number
Answers
Answered by
0
Answer:
To understand this example, you should have the knowledge of the following C++
Answered by
1
To check whether an integer is even or odd, the remainder is calculated when it is divided by 2 using modulus operator %. If remainder is zero, that integer is even if not that integer is odd.
Hope its helpful.
Similar questions