C++ program to find that given number is even or odd.

#include<iostream.h>
#include<conio.h>
void main(){
int num;
clrscr();
cout<<"Enter number = ";
cin>>num;
if(num%2==0) cout<<num<<" is Even Number"<<endl;
else cout<<num<<" is Odd Number"<<endl;
getch();
}

Comments

Popular posts from this blog

OOPs using C++ Language Topics Covered

IMP Questions of OOPS using CPP