online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#pragma warning(disable:4996) #include <stdio.h> int main(){ int sum = 0; int input; while(1){ //while๋ฌธ ์กฐ๊ฑด์˜ 1: true(์กฐ๊ฑด๋ฌธ์„ ๋น ์ ธ๋‚˜์˜ค๋Š” ๋กœ์ง์ด ์—†์Œ, break๋ฌธ์œผ๋กœ ์กฐ๊ฑด๋ฌธ์„ ๋น ์ ธ๋‚˜์˜ค๋Š”์ˆ˜๋ฐ–์—...) printf("์ˆซ์ž๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”(-1์ž…๋ ฅ์‹œ ์ข…๋ฃŒ): "); scanf("%d", &input); if(input == -1){ 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