Question: write a c program Countdown to New Year New year is coming! Let us write a program to show how much time to elapse before
write a c program



Countdown to New Year New year is coming! Let us write a program to show how much time to elapse before the New Year. The beginning of the coming New Year is defined as Jan 1, 2018, with time at 00:00:00 for hour:minute:second. Your program should read a user input date (day and month) and time (hour, minute and second), assuming valid input values within year 2017 and the earliest possible input date and time is 00:00:01, Jan 1, 2017. Your program should then display how many days, hours, minutes and seconds before the coming New Year A number of time library functions can be useful here. mktime() function should be used to convert input date and time to the internal time_t format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
