Program to find even and odd number Using C++

Share on facebook
Share on linkedin
Share on twitter
Share on email
Use "ufd6qb86" For Offers

            

Result :

Program to find even and odd number
//Program to find even and odd number



#include<iostream>



using namespace std;



main()

{

 

 int number;

 

 cout << "Enter a Number to Check that Is Number is ODD or EVEN" << endl;

 

 cin >> number;

 

 if(number%2==0)

 {

  cout << number << " : is EVEN Number" << endl;

 }

 else

 {

  cout << number << " is ODD number" << endl;

 }

 

 

 return 0;

}
Get 20% Off on Trading Fee Use "LG3RJV7Z"

More To Explore

Use "ufd6qb86" For Offers