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("μ–‘μˆ˜λ₯Ό μž…λ ₯ν•˜μ„Έμš” (-1을 μž…λ ₯ν•˜λ©΄ μ’…λ£Œ): "); scanf("%d", &input); if (input == -1) { //μ‚¬μš©μžκ°€ μž…λ ₯ν•œ 값이 -1인지 확인 break; } if (input < 0) { printf("μŒμˆ˜λŠ” λ¬΄μ‹œλ©λ‹ˆλ‹€.\n"); continue; } 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