C++ Program to find even or odd number

ad+1



Program:

// Program By http://solutionscpp.blogspot.com
// Author Mansoor Ahmed
// GMail ID: secguy000@gmail.com

#include<iostream>
using namespace std;

int main()
{
    int n=0;
   
    cout<<"Enter Number: ";
    cin>>n;
   
    if(n%2==0)
    cout<<"Number is Even" <<endl;
   
    else
    cout<<"Number is Odd" <<endl;
 
  return 0;
 
 }

Output:

1 comment: Leave Your Comments