Create a structure named Date having day, month and year as its elements. Store the current date in the structure. Now add 45 days to the current date and display the final date.
Answers
Answered by
0
Answer:
Input : d1 = 14, m1 = 5, y1 = 2017
Days to be added x = 10
Output : d2 = 24, m2 = 5, y2 = 2017
Input : d1 = 14, m1 = 3, y1 = 2015
Days to be added x = 466
Output : d2 = 14, m2 = 3, y2 = 2016
Similar questions