Created
June 17, 2017 20:52
-
-
Save MohamedTaha98/d441542b0ef9beb35a1d323bb78e9b01 to your computer and use it in GitHub Desktop.
Problem Solving
This file contains 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 <iostream> | |
using namespace std; | |
int main () { | |
long l, r; | |
cin >> l >> r; | |
if (l == r) | |
cout << l; | |
else | |
cout << "2"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment