Computer Science, asked by shruthi94, 6 months ago

write a program to print corresponding days of week​

Answers

Answered by kumarirashmi1098
0

Explanation:

Step by step descriptive logic to print day name of week.

Input week day number from user. Store it in some variable say week .

Print Monday if(week == 1) . I have assumed Monday as first day of week.

Similarly, check condition for all 7 days and print the corresponding day name.

Similar questions