Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hours = int(input())
- minutes = int(input())
- minutes = minutes + 15
- if minutes > 59:
- minutes %= 60
- hours += 1
- if hours > 23:
- hours = 0
- if minutes < 10:
- print(f'{hours}:0{minutes}')
- else:
- print(f'{hours}:{minutes}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement