Question: Please do this in C programming, also do not use arrays or strings, only function calling and parameters, thanks! 5. Write and test a function
5. Write and test a function called print_time_conversion that takes one integer representing a number of seconds. The function should print convert the given number of seconds to the amount of time in days, hours, minutes and seconds. The function should then print the result in the this format: W days, X hours, Y minutes, 2 seconds where W. X, Y and Z are the number of days, hours, minutes and seconds respectively. Examples: If the function is called with 60 seconds the function should print: 0 days, 0 hours, 1 minutes, 0 seconds If the function is called with 7260 seconds the function should print: 0 days, 2 hours, 1 minutes, 0 seconds If the function is called with 90070 seconds the function should print + dager hos + minutes, 10 secondo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
