@@ -0,0 +1,343 @@
+package ru.job4j.loop;%0A%0A/**%0A* Factorial.%0A*%0A* @author Sergey Indyukov (onl.ont@mail.ru)%0A* @version $Id$%0A* @since 0.1%0A*/%0Apublic class Factorial %7B%0A/** Method area.%0A* @param n  %0A* @return sum%0A*/%0A%09public int calc(int n) %7B%0A%09%09int mul;%0A%09%09if (n %3C= 0) %7B%0A%09%09%09mul = 1;%0A%09%09%09return mul;%0A%09%09%7D else %7B%0A%09%09%09for (int i = 1; i %3C= 5; i++) %7B%0A%09%09%09%09mul *= i;%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D

task 193