Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hour = int(input())
- minutes = int(input())
- sum = ((hour * 60) + minutes + 15)
- resulthour = sum / 60
- if resulthour >= 24:
- resulthour -= 24
- resultminutes = sum % 60
- print(f'{resulthour}:{resultminutes}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement