public class DiGui { public static void main(String[] args) { System.out.println(product(5)); } public static int product(int m) { if(m==1) { return 1; } return m*product(m-1); } }