online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import java.util.Scanner; public class Main { public static int fac2(int n) { int result = 1; for (int i=1; i<=n; i=i+2) { result = result * i; } return result; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter value of n: "); int n = sc.nextInt(); System.out.println("fac(" + n + ") = " + fac2(n)); } }

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