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 a, b, r; Scanner ob = new Scanner(System.in); System.out.print("Enter 1st no.: "); a = ob.nextInt(); System.out.print("Enter 2nd no.: "); b = ob.nextInt(); r = a>b ? a : b; System.out.println("Largest: " + r); } }
import java.util.Scanner; public class Demo { public static void main(String[] args) { int a, b, r; Scanner ob = new Scanner(System.in); System.out.print("Enter 1st no.: "); a = ob.nextInt(); System.out.print("Enter 2nd no.: "); b = ob.nextInt(); r = a>b ? a : b; System.out.println("Largest: " + r); } }

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