CODE:
#include<iostream.h>
#include<conio.h>
void main()
{
int num;
clrscr();
cout<<"Enter the Number=";
cin>>num;
if(num%2==0)
cout<<"Number is even";
else
cout<<"Number is odd";
getch();
}
Article by +Jasmeet Singh
Chief-Editor
He is a tech Enthusiast, an Altruist and calm mentor. He loves to code. He is also a creative graphic designer. Do check out his designfolio @ Jasmeet.asia If you like This post, you can follow me on Twitter.
For Further Reading,
C++ Program,
Control Structures,
If-Statement
0 comments:
Post a Comment