-->
当前位置:首页 > 题库

PROGRAMMING:Experiment content 4 topic 4_ eleven

Luz5年前 (2021-05-10)题库389
Write the program, input year and month, output the month calendar.
###Input format:
Enter the year and month in one line. The year range is (positive integer), and the month range is (1-12).
###Output format:
Output the calendar of the month. The width of the output character of each day is 8. There is no space between each day and the line is right aligned. All blank parts are filled with space characters. Note that there are no extra spaces and line breaks after the last date of the month.
###Input example:
Here is a set of inputs. For example:
```in
2018 8
```
###Output example:
The corresponding output is given here. For example, each date takes 8 characters
```out
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
```







answer:If there is no answer, please comment