Write a program that accepts a time as an hour and minute. Add 15 minutes to the time, and output the result.


Example 1:


Enter the hour: 8

Enter the minute: 15

It displays:


Hours: 8

Minutes: 30

Example 2:


Enter the hour: 9

Enter the minute: 46

It displays:


Hours: 10

Minutes: 1

HINT: First, try to solve the problem where hours go from {0,1,2,. 8,9,10,11} instead of {1,2,3. ,9,10,11,12}. This should be similar to your answer for Q2. Then, find a way to convert your final answer for hours from a {0,1,2,. 8,9,10,11} time system to a {1,2,3. ,9,10,11,12} time system.

The following content is partner provided