Computer Science, asked by janvipatil2404, 1 month ago

what is condition to check for even number in c++​

Answers

Answered by praveen19099498
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 sridevi21082003
0

Answer:

remainder = number % 2;

(remainder == 0)

Explanation:

use if else to check the condition by above method

Similar questions