Practice · 2 of 3
Minutes to h:mm
CHALLENGE
Difficulty: beginner+25 XP
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 %.
Press Submit to check your solution.
Back to lesson: Practice: Arithmetic Clinic