You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
328 B

int gcd(int a, int b) {
if (a == b){ return a; }
else if (a > b) { return gcd(a - b, b); }
else return gcd(b - a, a);
}
void gcd(int a) {
return ;
}
int main(){
int a,b;
a = getint();
b = getint();
putint(gcd(a,b));
putch(LF);
return 0;
}
// Redefined Function 函数重复定义