C++ Program to Check Even or Odd Number

| Last Updated: | In: C++ Tutorial


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.


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies.


You may also like:

Tags: , , , ,