求最大公約數能夠用2七、15來思考spa
int a, b, yu; a = b = yu = a % b; while (yu) { a = b; b = yu; yu = a % b; }
最小公倍數 = a*b/最大公約數code