Guest User

Untitled

a guest
Apr 25th, 2023
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. Budged = float(input())
  2. Video = int(input())
  3. Processors = int(input())
  4. Ram = int(input())
  5. Video *= 250
  6. Processors = float(Processors*(Video*0.35))
  7. Ram = float(Ram*(Video*0.10))
  8. Total_price = Video + Processors + Ram
  9. if Video > Processors:
  10. Total_price *= 0.85
  11. if Total_price >= Budged:
  12. print(f'Not enough money! You need {Total_price - Budged:.2f} leva more!')
  13. else:
  14. print(f'You have {Budged - Total_price:.2f} leva left!')
Add Comment
Please, Sign In to add comment