Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. hour = int(input())
  2. minutes = int(input())
  3. sum = ((hour * 60) + minutes + 15)
  4. resulthour = sum / 60
  5. if resulthour >= 24:
  6. resulthour -= 24
  7. resultminutes = sum % 60
  8. print(f'{resulthour}:{resultminutes}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement