← Back to User Input
Question 197
Total Minutes
Total Minutes
Read a number of hours and then a number of minutes, both whole numbers, and print the whole duration in minutes in the form <hours>h <minutes>m is <total> minutes, where the total is the hours times 60 plus the minutes. Input: two lines, one integer each, no prompts.
Expected Output:
2h 15m is 135 minutes= newline. The output ends with a newline — print one after the last line.
Hints3 available
Sign in to use hintsTopics:
User Input
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.