求最大公因数

int gcd(int a, int b){
     return a%b==0?b:gcd(b,a%b);
}
posted @ 2018-02-03 11:23  A-Little-Nut  阅读(133)  评论(0编辑  收藏  举报