Spocoman

Excursion

Jul 16th, 2022 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. people = int(input())
  2. nights = int(input())
  3. cards = int(input())
  4. tickets = int(input())
  5.  
  6. total = people * (nights * 20 + cards * 1.60 + tickets * 6) * 1.25
  7.  
  8. print(f'{total:.2f}')
  9.  
  10.  
  11. Или тарикатската:)
  12.  
  13. print(f'{int(input()) * (int(input()) * 20 + int(input()) * 1.60 + int(input()) * 6) * 1.25:.2f}')
  14.  
Add Comment
Please, Sign In to add comment