#include<conio.h>
#include<iostream.h>
#include<math.h>
void main()
{
clrscr();
int N;
cout<<" ENTER THE NUMBER ";
cin>>N;
if(N%2==0)
{
cout<<"The Number is EVEN.";
}
else
cout<<"The Number is ODD";
getch();
}
#include<iostream.h>
#include<math.h>
void main()
{
clrscr();
int N;
cout<<" ENTER THE NUMBER ";
cin>>N;
if(N%2==0)
{
cout<<"The Number is EVEN.";
}
else
cout<<"The Number is ODD";
getch();
}
No comments:
Post a Comment