1
0
forked from kalmar/DALGLI0
DALGLI0/zad1/NWDCalculator.java

10 lines
197 B
Java
Raw Normal View History

public class NWDCalculator {
public static int findNWD(int a, int b) {
if (b == 0)
return a;
else {
return findNWD(b, a % b);
}
}
}