Advertisement
desislava_topuzakova

Untitled

Apr 12th, 2020
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. num_table = int(input())
  2. l_table = float(input())
  3. w_table = float(input())
  4. cover_table = num_table * (l_table + 2 * 0.30) * (w_table + 2 * 0.30)
  5.  
  6. care_table = num_table * (l_table / 2) * (l_table / 2)
  7.  
  8. price_usd = cover_table * 7 + care_table * 9
  9. price_lev = price_usd * 1.85
  10. print(f"{price_usd:.2f} USD")
  11. print(f"{price_lev:.2f} BGN")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement