Check Odd or Even Number in C++


//Write a program to find whether number is odd or even.
#include <iostream.h>
#include <conio.h>
void main ()
{
int a;
clrscr ();
cout <<"Enter Any Number: ";
cin >>a;
if (a%2==0)
{
cout <<"Number is Even";
}
else
{
cout <<"\n Number is Odd;
}
getch ();
}

Labels