Skip to main content

Practice ยท 2 of 3

Minutes to h:mm

Implement void program(void) printing 195 minutes as exactly 3:15 (hours:minutes with the minutes zero-padded to 2 digits). Compute both parts with / and %.

Difficulty: beginner

Back to lesson: Practice: Arithmetic Clinic