2011年4月23日

摘要: #include <iostream>#include <stdlib.h>#include <stdio.h>int GCD(int a,int b){ int i,temp_gcd; for(i=a; i>=1; i--) { if(a%i==0){ if(b%i==0) {temp_gcd=i; return temp_gcd;} } }}int LCM(int a,int b){ int temp_lcm; temp_lcm=a*b/GCD(a,b); //最小公倍数等于... 阅读全文
posted @ 2011-04-23 10:45 小影帆 阅读(138) 评论(0) 推荐(0) 编辑

导航