#include<iostream.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();
cout<<"\n Enter a Number : ";
cin>>x;
switch(x)
{
case 0:
cout<<"\n Number is Even";
break;
case 1:
cout<<"\n Number is Odd";
break;
default:
y=x%2;
switch(y)
{
case 0:
cout<<"\n Number is Even";
break;
default:
cout<<"\n Number is Odd";
}
}
getch();
}