online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { int year; printf("연도를 입력하시오 >> "); scanf("%d", &year); // 조건 1 = 4로 나눠지고+100으로 안나눠지면 윤년 // 조건 2 = 400으로 나눠지면 윤년 // 괄호 안해도 상관없지만 가독성을 위해 표시하는게 좋다 if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) { printf("윤년입니다."); } else { printf("평년입니다."); } 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