โ Back to Variables
Question 271
Minutes to Hours and Minutes
Minutes to Hours and Minutes
Declare int totalMinutes = 135. Split it into whole hours and leftover minutes, then print them in the exact format below:
2h 15mExpected Output:
2h 15m
Topics:
Variables
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.