Cpp Control Flow Statements 12

Question:1
C++ program to take input for day number (1..7) and print the day?
for example:

input output
1 Sun
2 Mon
3 Tue
4 Wed
5 Thru
6 Fri
7 Sat
Sol:

Question:2
C++ program to take input for month number (1..12) and print the Month?

for example:
input output
1 Jan
2 Feb
3 Mar
and so on
Sol: