close
int hcf(int a , int h)
{
        int temp;
        while(1)
        {
                temp = a % h;
                if(temp == 0)
                {
                        return h;
                }
                a = h;
                h = temp;
        }
}
arrow
arrow
    全站熱搜

    JerryCheng 發表在 痞客邦 留言(0) 人氣()