Answers for "even or odd program in c++"

C++
0

even or odd program in c++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
  int inp;
  cin>>inp;
  if(inp % 2 == 0)
  {
    cout<<" Even" <<endl;
  }
  else
  {
    cout<<"Odd"<<endl;
  }
}
Posted by: Guest on March-03-2022

Browse Popular Code Answers by Language