You will take value of seconds from user and display that seconds in hh:mm:ss format. You must use while loop to calculate hours and for loop to calculate minutes.
Example:

10000 seconds equals to 2 hours, 46 minutes, and 40 seconds. 2:46:40