@@ -0,0 +1,490 @@
+package by.vorokhobko;%0A%0A/**%0A* Facorial.%0A*%0A* Class Factorial calculates the factorial of  part 001, lesson 4.%0A* @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A* @since 10.12.2016.%0A* @version 1.%0A*/%0A%0Apublic class Factorial %7B%0A%09/**%0A%09* The class field.%0A%09* The method calculates the factorial.%0A%09* @param n - n.%0A%09* @return tag.%0A%09*/%0A%0A%09public int mult(int n) %7B%0A%09%09int fact = 1;%0A%09%09for (int i = 1; i %3C n; i++) %7B%0A%09%09%09fact *= i;%0A%09%09%7D%0A%09%09if (n == 0) %7B%0A%09%09%09int i = 0;%0A%09%09%09fact = 1;%0A%09%09%7D%0A%09%09return fact;%0A%09%7D%0A%7D

add class Factorial