Skip to content

Instantly share code, notes, and snippets.

@MohamedTaha98
Created June 17, 2017 20:52
Show Gist options
  • Save MohamedTaha98/d441542b0ef9beb35a1d323bb78e9b01 to your computer and use it in GitHub Desktop.
Save MohamedTaha98/d441542b0ef9beb35a1d323bb78e9b01 to your computer and use it in GitHub Desktop.
Problem Solving
#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