← Back to User Input
Question 183
Minutes Into Hours And Minutes
Minutes Into Hours And Minutes
Read a number of minutes as a whole number and split it into whole hours and the minutes left over, then print one line in the form <hours> hours and <minutes> minutes; use floor division // for the hours and the remainder operator % for the leftover minutes. Input: one line, an integer, no prompt.
Expected Output:
2 hours and 15 minutes= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
User InputOperators
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.