GroZnik81

Untitled

Apr 19th, 2020 (edited)
21
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. table_pcs = int(input())
  2. table_daljina=float(input())
  3. table_shirina = float(input())
  4. pokrivka= (table_daljina + 2 *0.3) * (table_shirina +2*0.3)
  5. kare = (table_daljina / 2 ) *(table_daljina / 2 )
  6. total_pokrivka_plat = table_pcs *pokrivka
  7. total_kare_plat = table_pcs *kare
  8. price_uds = (total_kare_plat *9 )+ (total_pokrivka_plat *7 )
  9. price_bgn = price_uds *1.85
  10. #print(total_kare_plat)
  11. #print(total_pokrivka_plat)
  12. print(f"{price_uds:.2f} USD")
  13. print(f"{price_bgn:.2f} BGN")
RAW Paste Data