Program for check the number is even or odd.

To check the number is even or odd No%2==0 this condition is used. If this condition is true then given number is even otherwise odd.

Above operator is called “modulus”. It will give the remainder that is left over when one number is divided by another.

Ex. 10 % 2 it will give 0 . because 10 is divisible by 2. 10 % 2 == 0 this condition is true, that’s why 10 is even number.

PROGRAM :-

OUTPUT :-