Subscribe For Free Updates!

We'll not spam mate! We promise.

Sunday 4 August 2013

Displyaing Even, Odd value in C++

#include<iostream.h>
#include<conio.h>

int main()
{
clrscr();
int num_1;
cout<<"Enter any integer value: ";
cin>>num_1;
if(num_1%2==0)
cout<<"\nValue "<<num_1<<" is even";
else
cout<<"\nValue "<<num_1<<" is Odd";
getch();
return 0;
}

Socializer Widget By CodingLovers
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment