#include<iostream> using namespace std; int GCD(int x, int y) { return y == 0 ? x : GCD(y, x % y); } int main() { int x, y; x=GCD(169, 121); cout << "GCD(169,121)的最大公因数为:" << x << endl; y = GCD(202, 282); cout << "GCD(202,282)的最大公因数为:" << y << endl; system("pause"); return 0; }