最大公约数

  int cal(int x,int y)
            {
                if (x==0)
                {
                    return y;
                }
                return cal(y % x, x);
            }

  

posted @ 2022-12-04 16:01  hurui12  阅读(16)  评论(0编辑  收藏  举报