@@ -0,0 +1,908 @@
+package com.javarush.task.task15.task1531;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.IOException;%0Aimport java.io.InputStreamReader;%0Aimport java.math.BigDecimal;%0A%0A/* %0A%D0%A4%D0%B0%D0%BA%D1%82%D0%BE%D1%80%D0%B8%D0%B0%D0%BB%0A*/%0A%0Apublic class Solution %7B%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));%0A%0A        int input = Integer.parseInt(reader.readLine());%0A        reader.close();%0A%0A        System.out.println(factorial(input));%0A    %7D%0A%0A    public static String factorial(int n) %7B%0A        //add your code here%0A        return factorialCalculate(n).toString();%0A    %7D%0A%0A    private static BigDecimal factorialCalculate(int n) %7B%0A        if (n %3C 0) %7B%0A            return BigDecimal.valueOf(0);%0A        %7D else if (n == 0) %7B%0A            return BigDecimal.valueOf(1);%0A        %7D%0A        return factorialCalculate(n - 1).multiply(BigDecimal.valueOf(n));%0A    %7D%0A%7D%0A

Complete task1531