Advertisement
Spocoman

Fish Land

Feb 22nd, 2022
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 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. shellKg = 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 = shellKg * 7.50
  10. total_sum = bonito_fish_sum + saffron_sum + shell_sum
  11.  
  12. print(f"{total_sum:.2f}")
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement