Add One Second (2)

Write a function @add1sec(h,m,s)@ that receives as argument a clock
time, given in hours, minutes and seconds, and returns, again in hours,
minutes and seconds, the clock time increased by one second. The
arguments received fulfill the preconditions h < 24, m < 60 and s < 60,
and the resulting clock time must obey the same inequalities.

Sample session

Problem information

Author: ProAl

Generation: 2026-01-25T15:02:50.928Z

© Jutge.org, 2006–2026.
https://jutge.org
