Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/odd and even.cpp Secret

Created Jul 18, 2021
Embed
What would you like to do?
#include<iostream>
using namespace std;
int main(){
int n;
cout<<"Enter a Number: ";
cin>>n;
if (n%2==0){
cout<<"Even Number"<<endl;
}
else {
cout<<"Odd Number"<<endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment