7.C++ Program to Check Whether Number is Even or Odd

C++ Program to Check Whether 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.
To understand this example, you should have the knowledge of following C++ programming topics:
  • C++ if, if...else and Nested if...else

Comments

Post a Comment

Popular posts from this blog

10.C++ Program to Find All Roots of a Quadratic Equation

8.C++ Program to Check Whether a character is Vowel or Consonant.

9.C++ Program to Find Largest Number Among Three Numbers