Day when the date is given
Day when the date is given What if our calendar problem from aptitude gets converted to code and implemented? Want to check your accuracy during the practice sessions? Then let's check this out!! For Example, Day:03 Month:11 Year:1999 is the date given for determining the day then the output processed is 'Wednesday'. In this code, we are finding the day when the given date is given. It is programmed based on the concept of no: of odd days . First of all, the data we need to feed is the no: of days in a month from Jan to Dec which is initialized in the form of an array called m[13]. Then the data is taken from stdin i.e. from the keyboard. Then the given year is divided into three parts. Part I: The one with the 400 multiple. part II: The one with 4 multiple. Part III: The remaining part. Based on the three different categories the no: of odd days are calculated. Similarly, for months, the odd days are done based on the completed ones. Th...