CJCoding With Joseph
15free / daySign inCreate account

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
Topics:
User Input
📥 Auto-Input:
2\n15\n
This input is automatically fed to your program's stdin
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.