int gcd(int x,int y) { if (y == 0) /* 餘0,除數x 即為最大公因數*/ return x; else return gcd(y, x % y); /* 前一步驟的除數為被除數,餘數為除 ...
確定! 回上一頁