Subscribe to Feeds

Send Your COMPLETED Projects To georgepj@hotmail.com

We'll Publish It With Your Name :-)

Programs Can Also Be Downloaded From The Folders Below....[Or Scroll Down]

Check for Odd or Even

Click Here To Download C++ File Of This Program

 //prg to find a no is even or odd  
//Downloaded From www.c4cpp.co.nr. (C)2009.All rights reserved.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int e;
cout<<"Enter a no :"<<endl;
cin>>e;
if (e==0)
cout<<"The no is neither even or odd "<<endl;
if (e%2==0)
cout<<"The no is even"<<endl;
else
cout<<"The no is odd "<<endl;
getch();
}

No comments: