Practice
Hours and Remaining Minutes
EASYArithmetic4 marks
Read a total number of minutes. Output two lines, numbers only: the whole hours, then the minutes left over.
Use DIV for the hours and MOD for the remainder. Do not print the words "hours" or "minutes".
Input: One integer, the total minutes. Output: Two integers.
Example:
Input: 130
Output: 2
10
Sample Test Cases
Test 1: Two hours and ten minutes
Inputs: 130
Expected: 2
10
Test 2: Under one hour
Inputs: 59
Expected: 0
59