下面函数的功能是用辗转相除法求两个正整数m和n的最大公约数。请在下划线处填空。 int fun(int m i
已帮助 人
下面函数的功能是用辗转相除法求两个正整数m和n的最大公约数。请在下划线处填空。 int fun(int m,int n) { int r; if(m<n) { r=m; m=n ; n=r; } r=m%n; while() { m=n ; n=r; r=m%n; } return n ; }

回答
共1条回复-
r!=0##%_YZPRLFH_%##r
