online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import java.util.Scanner; public class Main { public static void main(String[] args) { int num; double result; System.out.println("Please enter a number ?"); Scanner sc = new Scanner(System.in); num = sc.nextInt(); result = Math.sqrt(num); System.out.printf("The root of %d = %f",num,result); } }

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