Hi, anyone knows how to solve this? help.
package pl.codegym.task.task03.task0308;
/*
Iloczyn 10 liczb
*/
public class Solution {
public static void main(String[] args) {
System.out.println(Iloczyn(10));
}
public static int z = 1;
public static int Iloczyn(int i){
for(int w = 1; w <= i ; w++){
z = z * w;
}
return z;
}
}