Advertisement
Spocoman

04. Vegetable Market

Dec 8th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. vegetables_bg = float(input())
  2. fruits_bg = float(input())
  3. vegetables_kg = float(input())
  4. fruits_kg = float(input())
  5.  
  6. results = ((vegetables_bg * vegetables_kg) + (fruits_bg * fruits_kg)) / 1.94
  7. print(f'{results:.2f}')
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement