Assignments » Flow Of Control » Set 1 » Solution 1

#include <iostream>
using namespace std;


int main()
{
 int a;
 cout<<"Enter any number : ";
 cin>>a;

 if(a%2==0)
  cout<<"The number is even";
 else
  cout<<"The number is odd";
 

 return 0;
}



Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :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.

 
Top