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