fb pixel

Minutes to h:min

notion image
Given the time passed since midnight 00:00, print what time it is in the format hour:minute.
Input
Output
1048
17:28
2096
10:56
 
Note that the input can contain minutes that are larger than 24 hours, but the output needs to always be in the range 0:0 - 23:59.
 
Hint
You can use the remainder operator % to make sure the values for hours and minutes stay in the appropriate range
 
To check your solution you need to sign in
Sign in to continue