@@ -0,0 +1,499 @@
+package ru.job4j.loop;%0A%0A/**%0A * Factorial.%0A *%0A * @author mklimentiev%0A * @version 1.0%0A * @since 02.04.2017%0A*/%0Apublic class Factorial %7B%0A%0A%09/**%0A%09 * calc.%0A%09 * The method calc(int n) calculates and returns the factorial of the number passed as a parameter;%0A%09 * @param n -- the first parameter;%0A%09 * @return -- the the factorial of the number passed as a parameter;%0A%09*/%0A%09public int calc(int n) %7B%0A%09%09int factorial = 1;%0A%09%09for (int i = 1; i %3C= n; i++) %7B%0A%09%09%09factorial = factorial * i;%0A%09%09%7D%0A%09%09return factorial;%0A%09%7D%0A%7D

add Factorial.java