Minutes to Hours
Completed
Read a number of minutes and print it as hours and minutes in the form H h M min.
Input
One non-negative integer.
Output
For 135 the output is 2 h 15 min.
Example
Input
135
Output
2 h 15 min
Editor
Python
Hints
Hours are minutes // 60.
The leftover minutes are minutes % 60.
Solution explanation
// and % together split a number into whole units and the remainder. divmod(m, 60) does both at once.
Show solution
m = int(input())
print(f"{m // 60} h {m % 60} min")