#include<iostream.h>
#include<conio.h>
void main()
{
int num;
cout<<" Even or odd Number given by user\n “;
cout<<" Enter number for verification “;
cin>>num;
if(num%2==0)
{
cout<<" Given number is even “;
}
else
{
cout<<" Given number is odd“;
}
getch();
}
No comments:
Post a Comment