#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
int num_1;
cout<<"Enter any integer value: ";
cin>>num_1;
if(num_1%2==0)
cout<<"\nValue "<<num_1<<" is even";
else
cout<<"\nValue "<<num_1<<" is Odd";
getch();
return 0;
}
#include<conio.h>
int main()
{
clrscr();
int num_1;
cout<<"Enter any integer value: ";
cin>>num_1;
if(num_1%2==0)
cout<<"\nValue "<<num_1<<" is even";
else
cout<<"\nValue "<<num_1<<" is Odd";
getch();
return 0;
}
0 comments:
Post a Comment