GCD of two numbers

PHOTO EMBED

Wed Jun 19 2024 15:38:46 GMT+0000 (Coordinated Universal Time)

Saved by @Xeno_SSY #c++

int gcd(int a,int b){
  if(a==0 || b==0) return (a+b);
  else if(a>=b) return gcd(a-b,b);
  else return gcd(a,b-a);
}
content_copyCOPY