online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Program to calculate the sum of a maximum of 10 numbers // If a negative number is entered, the loop terminates #include<stdio.h> #include<conio.h> void main() { int i, number, sum = 0; for (i=1; i <= 10; ++i) { printf("Enter a number: "); scanf("%d", &number); if(number < 0) { break; } sum += number; } printf("Sum = %d", sum); getch(); }

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