Created
April 26, 2023 05:52
-
-
Save modos/56087e7cc16945b1f31a359fa48e7715 to your computer and use it in GitHub Desktop.
ب.م.م
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; | |
long long gcd(long long a, long long b) | |
{ | |
return (b == 0LL ? a : gcd(b, a % b)); | |
} | |
int main() | |
{ | |
long long a, b; | |
cin >> a >> b; | |
cout << gcd(a, b) << '\n'; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment