0
A java code to find the gcd of two numbers
to find the greatest common divisor of the numbers. and I want it to implement with Java.
2 Respostas
+ 1
your problem is more math is not a programming problem
+ 1
int gct(int a, int b){
while(b != 0){
int r = a%b;
a = b;
b = r;
}
return a;
}