n個數的最大公約數 最小公倍數

#include <stdio.h> int divisor (int a,int b) /*自定義函數求兩數的最大公約數*/ { int temp; if(a<b) { temp=a;a=b;b=temp;} while(b!=0) { temp=a%b; a=b;
相關文章
相關標籤/搜索