online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
public class Main { public static long factorial(int n){ long a = 1; for (int i = (n + 9); i > n; i--) a = a * i; // мы сократили, чтобы не пришлось делить огромные числа return a; } public static void main(String[] args) { java.util.Scanner in = new java.util.Scanner(System.in); int n; n = in.nextInt(); long fact = 1; for (int i = 2; i <= 9; i++) fact = fact * i; System.out.print(factorial(n) / fact); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue