求兩個數的最大公約數

public class gongYue  {  public int f(int a, int b) {    //求兩個數的最大公約數   int r = a % b;   while (r != 0) {    a = b;    b = r;    r = a % b;   }spa   return b;  }class }while
相關文章
相關標籤/搜索