forked from kalmar/DALGLI0
10 lines
197 B
Java
10 lines
197 B
Java
public class NWDCalculator {
|
|
public static int findNWD(int a, int b) {
|
|
if (b == 0)
|
|
return a;
|
|
else {
|
|
return findNWD(b, a % b);
|
|
}
|
|
}
|
|
}
|