online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ class dstesteq1 { int Sub(int x, int y) { int z; z = x - y; return z; } } public class Main { static int Add(int x, int y) { int z; z = x + y; return z; } public static void main(String[] args) { int a, b, c; //----------------------------- a = Add(10, 4); System.out.println("a : " + a); //----------------------------- dstesteq1 eq1 = new dstesteq1(); b = eq1.Sub(10, 4); System.out.println("b : " + b); //----------------------------- dstesteq2 eq2 = new dstesteq2(); c = eq2.Mul(10, 4); System.out.println("c : " + c); } }
class dstesteq2 { dstesteq2() { } int Mul(int x, int y) { int z; z = x * y; return z; } }

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