online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#pragma warning(disable: 4996) // MSVCμ—μ„œ scanf λ³΄μ•ˆ κ²½κ³  λΉ„ν™œμ„±ν™” #include <stdio.h> int main(void) { int outcome; // μž…λ ₯ 받은 점수 char grade; // νŒμ •λœ 학점 // μ‚¬μš©μžμ—κ²Œ 점수 μž…λ ₯을 μš”μ²­ printf("κ²°κ³Ό 점수λ₯Ό μž…λ ₯ν•˜μ„Έμš”(0-100): "); scanf("%d", &outcome); // 닀쀑 if~else 문으둜 학점 κ²°μ • if (outcome >= 90) { grade = 'A'; } else if (outcome >= 80) { grade = 'B'; } else if (outcome >= 70) { grade = 'C'; } else if (outcome >= 60) { grade = 'D'; } else { grade = 'F'; } // κ²°κ³Ό 좜λ ₯ printf("학점은: %c\n", grade); 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