solution

#include<iostream.h>
#include<conio.h>


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";
 
 getch();
 return 0;
}

Post a Comment

Previous Post Next Post