2018 Java Chapter 5 (Week 05)

From: 2018-09-01 00:00:00 To: 2018-11-13 00:00:00 Now: 2024-11-21 22:22:16 Status: Public

J - 달력 출력

Time Limit: 1s Memory Limit: 128MB

Submissions: 2001 Solved: 481
Description

년과 월을 입력으로 받아 해당 월의 달력을 출력하는 프로그램을 작성하세요.

Write a program that prompts the user to enter the year and the month and displays the calendar table for the year on the console. 

Input

* Line 1 : year (1,600~3,000)

* Line 2 : month (1~12)

 

Output

Sample Output 참조

Sample Input
2013
1
Sample Output
Sun Mon Tue Wed Thu Fri Sat
         1   2   3   4   5
 6   7   8   9  10  11  12
13  14  15  16  17  18  19
20  21  22  23  24  25  26
27  28  29  30  31
Hint

Chapter 6.11 참고

Source

JAVA2015 PE5.29