Advertisement
kalinx

tenis equipment

Oct 15th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. import math
  2. rocket_pr = float(input())
  3. num_rockets = int(input())
  4. num_snickers = int(input())
  5. snickers_pr = rocket_pr / 6
  6. total = rocket_pr * num_rockets + snickers_pr * num_snickers
  7. total *= 1.2
  8. sponsors  = math.ceil(total * 7 / 8)
  9. djocovich = math.floor(total / 8)
  10. print(f'Price to be paid by Djokovic {djocovich}')
  11. print(f'Price to be paid by sponsors {sponsors}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement