online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
# pragma warning(disable: 4996) // 컴파일러 경고 비활성화(scanf 보안 경고 회피) #include <stdio.h> int main(){ int score; // 정수형 변수 score 선언 (점수) char grade; // 문자형 변수 grade 선언 (학점) // 사용자로부터 점수 입력받기 printf("학생의 점수를 입력하세요: "); scanf("%d", &score); // 중첩된 삼항 연산자를 사용하여 학점 판별 grade = (score >= 90) ? 'A' : (score >=80) ? 'B' : (score >=70) ? 'C' : (score >=60) ? 'D' : 'F'; printf("학점: %C\n", grade); // 학점 출력, %C는 문자 출력 형식 지정자 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