fork download
  1. #include <algorithm>
  2. #include <iostream>
  3.  
  4.  
  5.  
  6. using namespace std;
  7.  
  8.  
  9.  
  10. int main()
  11. {
  12. int a, b;
  13. cin >> a >> b;
  14.  
  15. cout << "gcd = " << __gcd(a, b) << endl;
  16. }
Success #stdin #stdout 0.01s 5304KB
stdin
14 49
stdout
gcd = 7