Write a program in C to check whether the entered number is even or odd using the if-else statement.
Also, check even-odd using switch case and ternary operator or conditional operator.
A number is even if it is divisible by 2.
Read moreWAP in C to check whether the number is even or odd using if else