int hcf(int a , int h)
{
        int temp;
        while(1)
        {
                temp = a % h;
                if(temp == 0)
                {
                        return h;
                }
                a = h;
                h = temp;
        }
}
文章標籤
全站熱搜
創作者介紹
創作者 JerryCheng 的頭像
JerryCheng

KwCheng's blog

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