Minutes in, hours and leftover out

Complete the previous lesson to unlock this one.

Back to the path

Minutes in, hours and leftover out

Level 12: Formulas. Same split as the last lesson, but the total is read in. Still print the two numbers and no words.

Read a total number of minutes. Output two lines:

  1. whole hours
  2. minutes left over

Example: input 130 →

2 10