Write a procedure
void decompose(int n, int& h, int& m, int& s);
that, given a quantity of seconds @n@, computes how many hours @h@, minutes @m@ and seconds @s@ it represents. That is, we must have @s@ @m@ @h@ @n@, with @s@ and @m@ .
is a natural number.
You only need to submit the required procedure; your main program will be ignored.
Input/Output