Commit 81ebfc89 by Patryk Czarnik

silnia wersja int

parent d1b742fc
......@@ -14,7 +14,6 @@ public class SkarbonkaNieskonczona {
suma += moneta;
System.out.println("aktualna wartość: " + suma);
}
}
}
......@@ -9,7 +9,7 @@ public class Silnia {
static int silnia(int n) {
int iloczyn = 1;
for(int i = 1; i <= n; i++) {
// ???
iloczyn = iloczyn * i; // albo krócej iloczyn *= i;
}
return iloczyn;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment