C++ program to check EVEN or ODD
The numbers which are divisible by 2 are known as EVEN numbers while the numbers which are not divisible by 2 are known as ODD.
In this program, we will check whether a given number is EVEN or ODD. Here, we are checking EVEN or ODD by using three different methods.
Program to check EVEN or ODD using if else in C++
Output
Program to check EVEN or ODD using Ternary Operator in C++
Program to check EVEN or ODD using Bitwise AND Operator in C++
need an explanation for this answer? contact us directly to get an explanation for this answer