C++ Program to check whether given number is even or odd [DEVCPP/GCC] Shikha Rajput CONDITIONAL [IF ELSE] Shikha Rajput //Program to check whether given number is even or odd #include<iostream> using namespace std; int main() { int num; cout<<"ENTER THE NUMBER:"; cin>>num; if(num%2==0) cout<<"NUMBER IS EVEN"; else cout<<"NUMBER IS ODD"; return 0; } Author : Shikha Rajput Share this Related Posts