@@ -0,0 +1,235 @@
+package ru.tsibrovskii.lesson1.Loops;%0A%0Apublic class Factorial %7B%0A%09%0A%09int x;%0A%09%0A%09public Factorial(int x) %7B%0A%09%09this.x = x;%0A%09%7D%0A%09%0A%09public int fact() %7B%0A%09%09%0A%09%09int rez = 1;%0A%09%09%0A%09%09for (int i = 1; i %3C= x; i++) %7B%0A%09%09%09rez *= i;%0A%09%09%7D%0A%09%09%0A%09%09return rez;%0A%09%7D%0A%7D

add factorial