online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
// Online C compiler to run C program online #include <stdio.h> int add(int a,int b){ return a+b; } int mul(int a, int b){ return a*b; } int calc(int c,int d,int x,int y){ return (c/d*x-y); } int main() { int a,b,c,d,x,y; printf("enter two numbers: \n"); scanf("%d%d", &a,&b); int result=add(a,b); int result1=mul(a,b); int result2=calc(10,20,30,40); printf("Addition: %d\n", result); printf("Multiplication: %d\n", result1); printf("Calculation: %d", result2); return 0; }

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