1
0
forked from kalmar/DALGLI0
DALGLI0/zad1/NWDCalculator.java
Cezary Baryłka c9e9b68a89 Zadanie 1
Program można uruchomić za pomocą polecenia: java Main 6
2018-07-08 22:21:24 +00:00

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);
}
}
}