36. Day of the Week

Acceptance — 0 accepted 0 submissions

Easy
Conditionals
No companies listed
The school timetable app stores days as numbers: 1 is Monday, 2 is Tuesday, and so on up to 7, which is Sunday.

Given a number, print the day's name. If the number is not between 1 and 7, print Invalid.

Input Format
A single integer d.

Output Format
Print the day name (Monday, Tuesday, …, Sunday) or Invalid.

Constraints
• -100 ≤ d ≤ 100

Example 1

Input
1
Output
Monday

Explanation Day 1 is Monday.

Example 2

Input
7
Output
Sunday

Explanation Day 7 is Sunday.

Example 3

Input
9
Output
Invalid

Explanation There is no day 9.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
Monday
No results yet
Run your code to test it against the sample cases.
Problem List