Question: In C language Name this program day.c This program prompts the user for a month and a day in Year 2020. For example, entering the
In C language
Name this program day.c This program prompts the user for a month and a day in Year 2020. For example, entering the values 9 and 2 represents September 2, and it is day 246 for 2020. Your program should print out the day-of-the-year for this date, in the format shown below. For this task, you can assume the user will always enter two valid integers the first is the month and the second the day. You can check your answers at some website if you want.
Input: 8 21 | Output: 8 21 is August 21, 2020, day 234 of the year
Input: 3 8 | Output: 3 8 is March 8, 2020, day 68 of the year
Input 12 25 | Output: 12 25 is December 25, 2020, day 360 of the year
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
