C++ Program to Check Number is Odd or Even

Below I have shared the C++ program to check a number is odd or even.

For example if user enters an odd number like 5 then the output will be Odd number and if user enters even number like 8 then output will be Even number.

If you have any problem regarding below odd or even number program then you can ask it by commenting below.

C++ Program to Check Number is Odd or Even

 

Output

enter the number:7

Even number

2 thoughts on “C++ Program to Check Number is Odd or Even

    1. Admin Post author

      It checks if a number is completely divisible by 2 then it is an even number else odd number.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *