online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(){ int sum = 0; int input; while(1){ printf("์ˆซ์ž๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”. (-2๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ์ข…๋ฃŒ): "); scanf("%d", &input); if(input == -1){ continue; } if(input == -2){ break; // break์„ ๋‘˜๋Ÿฌ์‹ผ ๋ฐ˜๋ณต๋ฌธ์„ ๋น ์ ธ๋‚˜์˜ด } sum += input; } printf("์ž…๋ ฅ๋œ ์ˆซ์ž์˜ ํ•ฉ๊ณ„๋Š” %d์ž…๋‹ˆ๋‹ค. \n", sum); 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