04-06 Lab exercise 1: Structure to handle Time
Write a program with following requirements:
type time with fields: hours, minutes, and seconds.
Write a function that takes an integer as parameter and converts that integer (as seconds) to hours, minutes, and seconds. These values should be stored into the fields of a structure of type time, and
the function should return that structure
Write a program that reads an integer, calls the function, and displays the fields of the returned structure.
Apr 6, 2017
ID: 23557 -
Called for Help
Apr 12, 2017
to add a comment.
Hidden content!#include * * * *
* * ** * * * *
** * * * * * * * ** * * * * * hours;