From f77b33fd1fa1950b2265742e0ddc9db3d7388c76 Mon Sep 17 00:00:00 2001 From: kim_yubin Date: Fri, 19 Oct 2018 20:11:14 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B6=94=EA=B0=80=20'=EC=9A=94=EC=9D=BC?= =?UTF-8?q?=EA=B3=84=EC=82=B0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 요일계산 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 요일계산 diff --git a/요일계산 b/요일계산 new file mode 100644 index 0000000..54148bc --- /dev/null +++ b/요일계산 @@ -0,0 +1,15 @@ +month = int(input("월을 입력하세요 : ")) +date_in = int(input("일을 입력하세요 : ")) +date=[0,31,28,31,30,31,30,31,31,30,31,30,31] +week=["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일"] +total=0 +answer='' +t=0 + +while t < month: + total += date[t] + t+=1 +total += date_in + +answer = week[total%7] +print(answer) \ No newline at end of file