# 4로 나눠지는 것 # except 100으로 나눠지는 것 # 400으로 나뉘지는 것 while 1 puts "윤년인지 알고 싶은 년도를 입력하세요","종료를 원하면 ctrl+c" # 윤년을 판단할 년도를 입력 받는다. a = gets.to_i if a%4 == 0 if a%100 == 0 if a%400 == 0 puts "윤년" else puts "평년" end else puts "윤년" end else puts "평년" end end
http://en.support.wordpress.com/code/posting-source-code/
0 응답 - “testing embed source code to wp”