三目运算符求最大公约数

int gy( int a,int b )

 {   

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

 }

 

posted @ 2011-11-23 14:53  谈笑风生膜法师  阅读(322)  评论(0编辑  收藏  举报