Advertisement
Spocoman

Tennis Equipment

Jan 5th, 2022 (edited)
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. from math import ceil
  2.  
  3. racket_price = float(input())
  4. racket_count = int(input())
  5. sneakers_count = int(input())
  6. rackets_sum = racket_price * racket_count
  7. sneakers_sum = racket_price / 6 * sneakers_count
  8. price = (rackets_sum + sneakers_sum) + ((rackets_sum + sneakers_sum) * 0.2)
  9.  
  10. print(f'Price to be paid by Djokovic {int(price / 8)}')
  11. print(f'Price to be paid by sponsors {ceil(price * 7 / 8)}')
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement