Question-:FLOW016 Problem - CodeChef
Code-:CodeChef: Practical coding for everyone
Either use Euclidean algorithm or inbuilt gcd function, __gcd(x, y).
int gcd(int x, int y){
if(y == 0){
return x;
}
return gcd(y, x%y);
}
ok,Thanks bhai