Input consist of month number (MM), the day of the month (DD) and the year (YYYY). Write a program to calculate and print the corresponding ...

Input consist of month number (MM), the day of the month (DD) and the year (YYYY). Write a program to calculate and print the corresponding day of the year ( in the range 1 to 366).

Example:

Input:  Month 05
        Day 03
        Year 1996
Output: CORRESPONDING DAY OF THE YEAR IS : 124
         ( 31 + 29 + 31 + 30 + 3 = 124 )

Have something to say? Log in to comment on this post.

0 comments