/* Program to check whether the number is even or odd number. */
Even Number :Any integer that can be divided exactly by 2 is an even number. The last digit is 0, 2, 4, 6 or 8.
Example 2, 56, 100, etc
Odd Number :Any integer that cannot be divided exactly by 2 is an odd number. The last digit is 1, 3, 5, 7 or 9
Example 1, 65, 987, etc
We need to describe the concept of even number and odd number in the mathematical form so that we can use it in our program.
Even number are the number divisible by 2, so we can represent even as any number which when divided by 2 gives remainder as 0.
and odd number are simply the number which are not even.
Skills Required :
Written with ♥ from Mangesh.
|1||C program to check number is even or odd.|
|2||C program to swap to number.|
|3||C program to check whether the year is leap year or not.|
|4||C program to check whether enter alphabet is vowel or not.|