← Problem book: C
Lesson 13 of 96 · 10 XP
Day of the week
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
The year started on a Monday. You are given the number of a day in the year k (1 ≤ k ≤ 365). Print the number of the day of the week:
1 — Monday, 2 — Tuesday, …, 7 — Sunday.
Example
Input:
1
Output:
1
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.