Created
January 10, 2017 20:13
-
-
Save devteampentagon/28ddebd585d44d9a7364a3fbeb0e783c to your computer and use it in GitHub Desktop.
Odd or Even
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <bits/stdc++.h> | |
| using namespace std; | |
| int main() | |
| { | |
| int n; | |
| cin >> n; | |
| if(n%2) | |
| cout << n << " is an odd number" << endl; | |
| else | |
| cout << n << " is an even number" << endl; | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment