Advertisement
Spocoman

06. Fishland

Dec 8th, 2021
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. mackerel_price = float(input())
  2. sprat_price = float(input())
  3. bonito_fish_kg = float(input())
  4. saffron_kg = float(input())
  5. shell_kg = float(input())
  6.  
  7. bonito_fish_sum = bonito_fish_kg * mackerel_price * 1.60
  8. saffron_sum = saffron_kg * sprat_price * 1.80
  9. shell_sum = shell_kg * 7.50
  10. sum = bonito_fish_sum + saffron_sum + shell_sum
  11. print(f'{sum:.2f}')
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement