int UCLN(int a,int b)
{
if(a==b)
return a;
else
{
if(a>b)
a=a-b;
else
b=b-a;
}
return UCLN(a,b);
}
Monday, July 15, 2013
Subscribe to:
Post Comments (Atom)
ĐỪNG TỎ RA NGUY HIỂM VỚI NGƯỜI NGUY HIỂM
ReplyDeleteĐây chỉ là 1 giải thuật đơn giản tìm ước bằng đệ quy thôi
DeleteThis comment has been removed by the author.
ReplyDelete