- Joined
- Aug 12, 2022

- Messages
- 6

- Reaction score
- 0

Write a program which asks the user to enter the number of day and display the result.

a) what day of the week it is

b) what week number it is

Hint: The day of the week is related to the remainder when n−1 is divided by 7, while the week number is related to (n − 1)/7. Modify your program to give the week number and day of the week for any n. (For the day of the week print a number in the range 0-6, which decodes as Mon=0, Tue=1, Wed=2... Sun=6.)