English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

Try the following code

int gcd(int a,int b)
{
int c;
while(1)
{
c = a%b;
if(c==0)
return b;
a = b;
b = c;
}
}

2006-09-22 17:46:11 · answer #1 · answered by Nishan Saliya 4 · 0 0

fedest.com, questions and answers