#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int a;
cout<<"Enter the no. ";
cin>>a;
if (a%2==0)
{cout<<"No. is even ";
}
else
{cout<<"No. is odd";
}
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a;
cout<<"Enter the no. ";
cin>>a;
if (a%2==0)
{cout<<"No. is even ";
}
else
{cout<<"No. is odd";
}
getch();
}
No comments:
Post a Comment