C Program to Check Whether a Number is Even or Odd

In this example, if...else statement is used to check whether a number entered by the user is even or odd.
Even and Odd numbers

To understand this example, you should have the knowledge of following C programming topics: