Searching...

Even And Odd Number.

15:50

#include <iostream>
using namespace std;
int main ()
{

   int no;
   cout << "Give me any number: ";
   cin >> no;

   if (no % 2 == 0) {
       cout << no <<" is even." << endl;
   }
   else
   {
       cout << no <<" is odd." << endl;
   }

   return 0;
}

0 comments:

Post a Comment

Thanks For Your FeedBack....

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.