@@ -0,0 +1,345 @@
+package task4_2;%0A%0Apublic class Factorial %7B%0A%0A%09%09public static void main(String%5B%5D args)%0A    %7B%0A        Factorial fac = new Factorial();%0A        System.out.println(fac.factorial(10));%0A%0A    %7D%0A%0A     public int factorial(int i)%0A    %7B%0A        int start = 1;%0A        for (int j=1;j%3C=i;j++)%7B%0A            start=start*j;%0A        %7D%0A    return start;%0A    %7D%0A%7D%0A%0A

add Factorial.java