#include <iostream>usingnamespacestd;intmain(){inta;cout<<"Enter any number : ";cin>>a;if(a%2==0)cout<<"The number is even";elsecout<<"The number is odd";return0;}
The Output Is:
SAMPLE RUN # 1
Enter any number : 68
The number is even
SAMPLE RUN # 2
Enter any number : 43
The number is odd
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.