what is condition to check for even number in c++
Answers
Answered by
0
Answer:
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.
Answered by
0
Answer:
remainder = number % 2;
(remainder == 0)
Explanation:
use if else to check the condition by above method
Similar questions