online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<stdio.h> int total (int, int, int); int main () { int x, y, z; printf ("enter three numbers"); scanf ("%d%d%d", &x, &y, &z); printf("total = %d", total(x,y,z)); } int total (int a, int b, int c) { float Q; if (a < 0) printf ("error"); else if (b < 0) printf ("error"); else if (c < 0) printf ("error"); else Q = (0.33 * a * a * a + 2 * b * b - 4 * a * c); return Q; }

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