Answers for "cpp code for euclids GCD"

C++
1

cpp code for euclids GCD

int gcd(int a,int b) {
  int R;
  while ((a % b) > 0)  {
    R = a % b;
    a = b;
    b = R;
  }
  return b;
}
Posted by: Guest on February-04-2022

Browse Popular Code Answers by Language