package ru.job4j.loop;

/**
* Factorial.
*
* @author Sergey Indyukov (onl.ont@mail.ru)
* @version $Id$
* @since 0.1
*/
public class Factorial {
/** Method area.
* @param n  
* @return sum
*/
	public int calc(int n) {
		int mul;
		if (n <= 0) {
			mul = 1;
			return mul;
		} else {
			for (int i = 1; i <= 5; i++) {
				mul *= i;
			}
		}
	}
}
@@ -303,9 +303,9 @@
  %3C= 
-5
+n
 ; i+
@@ -328,16 +328,31 @@
 i;%0A%09%09%09%7D%0A
+%09%09%09return mul;%0A
 %09%09%7D%0A%09%7D%0A%7D

task 193