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();
}
For Further Reading,
A complete Guide to learn Object Oriented Programming in C++
#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. 
| 
 | 
0 comments:
Post a Comment