Advertisement
Spocoman

Christmas Preparation

Jan 5th, 2022 (edited)
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. paper = float(input()) * 5.8
  2. cloth = float(input()) * 7.2
  3. glue = float(input()) * 1.2
  4. discount = float(input())
  5. total = (paper + cloth + glue) * (100 - discount) / 100
  6. print(f'{total:.3f}')
  7.  
  8. ИЛИ ТАРИКАТСКАТА:
  9.  
  10. print(f'{((float(input()) * 5.8 + float(input()) * 7.2 + float(input()) * 1.2) * (100 - float(input())) / 100):.3f}')
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement