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; // μ‚¬μš©μžκ°€ -1을 μž…λ ₯ν•˜λ©΄ μ¦‰μ‹œ μ’…λ£Œ } sum += input; // μ‚¬μš©μžκ°€ μž…λ ₯ν•œ 숫자λ₯Ό sum에 λ”ν•˜μ—¬ 합계λ₯Ό κ°±μ‹  } 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