18跟24的最大公因數:6,最大公因數數學表示法:(18,24)=6 ... int gcd(int x,int y) { if (y == 0) /* 餘0,除數x 即為最大公因數*/ return x; ...
確定! 回上一頁