Algorithm
Code Examples
#1 Code Example with C++ Programming
Code -
C++ Programming
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
if(n % 2 == 0) {
cout << "Mahmoud" << endl;
} else {
cout << "Ehab" << endl;
}
return 0;
}
Copy The Code &
Try With Live Editor
Input
1
Output
Ehab
Demonstration
Codeforces Solution-Mahmoud and Ehab and the even-odd game-Solution in C, C++, Java, Python