online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> // ν‘œμ€€ μž…μΆœλ ₯ ν•¨μˆ˜ int main(){ // ν”„λ‘œκ·Έλž¨ μ‹œμž‘, main ν•¨μˆ˜ μ •μ˜ int year; // μž…λ ₯받을 연도λ₯Ό μ €μž₯ν•  λ³€μˆ˜ μ„ μ–Έ printf("연도λ₯Ό μž…λ ₯ν•˜μ„Έμš”: "); scanf("%d", &year); // μž…λ ₯값을 λ³€μˆ˜ year에 μ €μž₯, &yearλŠ” μž…λ ₯ 값을 μ €μž₯ν•  λ©”λͺ¨λ¦¬ μ£Όμ†Œ if ((year % 4 == 0 && year % 100 !=0) || year % 400 == 0){ // μœ€λ…„μ„ νŒλ³„ν•˜λŠ” 쑰건문 // or(||) μ•žμ˜ ν•­μ—μ„œ κ΄„ν˜Έλ₯Ό μ œκ±°ν•΄λ„ 정상 μž‘λ™ /* μœ€λ…„μ˜ 쑰건: 1. 4의 λ°°μˆ˜μ΄λ©΄μ„œ 100의 λ°°μˆ˜κ°€ μ•„λ‹Œ 경우 β†’ μœ€λ…„ 2. λ˜λŠ” 400의 배수인 경우 β†’ μœ€λ…„ */ printf("μœ€λ…„μž…λ‹ˆλ‹€\n"); // μœ€λ…„μΌ 경우 좜λ ₯ } else { // μœ„μ˜ 쑰건이 λͺ¨λ‘ 거짓일 λ•Œ μ‹€ν–‰ β†’ 평년 printf("ν‰λ…„μž…λ‹ˆλ‹€\n"); // 평년일 경우 좜λ ₯ } 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