Duova N.

asked • 06/04/22

Wants to know logic how to convert it into code (C lan)

Mr. Sam was born on XX-YY-ZZZZ which happened to be a Saturday. If he died on AA-BB-CCCC, how many birthdays would he celebrate that fall on a Monday?

Assume, the year which is divisible by 4 are leap years and February has 29 days in a leap year. Also, rest of the calendar months have same days as in original calendar.

For example If Sam was born on 28-05-2022 and died on 28-05-2023 then number of birthdays he would have celebrated that fall on a Monday is 0 .


1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.