CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
User InputOperators
📥 Auto-Input:
135\n
This input is automatically fed to your program's stdin
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.