C++ Program to Check Even or Odd Number

We assume you have basic knowledge of c++ programming language. In this program, we have used the if…else statement to check even or odd, entered by the user during program execution.

Example: How to check whether number is even or odd using c++ program

Output is:

#first try
Enter an integer: 12
12 is even.
#second try
Enter an integer: 51
51 is odd.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , ,