摘要: #include int Gcd(int a, int b){ if(a==b) return a; if(a>b) return Gcd(a-b,b); if(a<b) return Gcd(a,b-a);}int main(){ printf("Input a,b:"); int a,b; scanf("%d,%d",&a,&b); if(a<=0||b<=0) { printf("Input number should be positive!\n"); return 0; } else 阅读全文
posted @ 2014-04-01 07:06 xzenith 阅读(445) 评论(0) 推荐(0) 编辑