Program to Find whether entered number is Even or Odd
#include<iostream.h>
#include<conio.h>
int main()
{
int a;
cout<<"Enter the number: ";
cin>>a;
if (a%2==0)
cout<<"It is Even number. ";
else
cout<<"It is Odd number. ";
getch();
return 0;
}
No comments :
Post a Comment