@@ -0,0 +1,302 @@
+package ru.nivanov;%0A%0Apublic class Factorial %7B%0A%09%0A%09int a;%0A%09%0A%09public Factorial (int a) %7B%0A%09%09%0A%09this.a = a;%09%0A%09%09%0A%09%7D%0A%09%0A%09public int calcF () %7B%0A%09%09%0A%09%09int b = this.a;%0A%09%09for (int i = 1; i %3C this.a; i++) %7B%0A%09%09b = b * i;%09%09%0A%09%09%7D%0A%09%09%0A%09%09System.out.println (String.format(%22factorial %25d =  %25d%22, a, b));%0A%09%09return b;%0A%09%7D%09%0A%0A%09%0A%09%0A%7D

add Factorial