三目运算符求最大公约数

int gy( int a,int b )

 {   

 return b==0?a:gy( b,a%b );   

 }
原文地址:https://www.cnblogs.com/dennisac/p/2260322.html