- Exercise 6
- Create program that asks user to give time (hours & minutes).
Then program asks for timeperiod (minutes) and tells how much clock is after
given timeperiod.
- Example:
>Give hours:
>13
>Give minutes:
>11
>Give timeperiod (minutes):
>20
>Time will be after 20 minutes: 13:31
- Note: if time is 12:59, after 13 minutes it will be 13:12, NOT 12:72
And if time is 23:45, after 30 minutes it will be 0:15, NOT 24:15
- Example
program, that need class
Lue to
function properly
- Back