Assignments » Flow Of Control » Set 1 » Solution 1

#include <iostream>
using namespace std;


int main()
{
 int a;
 cout<<"Enter any number : ";
 cin>>a;

 if(a%2==0)
  cout<<"The number is even";
 else
  cout<<"The number is odd";
 

 return 0;
}



Post a Comment

 
Top