Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Budged = float(input())
- Video = int(input())
- Processors = int(input())
- Ram = int(input())
- Video *= 250
- Processors = float(Processors*(Video*0.35))
- Ram = float(Ram*(Video*0.10))
- Total_price = Video + Processors + Ram
- if Video > Processors:
- Total_price *= 0.85
- if Total_price >= Budged:
- print(f'Not enough money! You need {Total_price - Budged:.2f} leva more!')
- else:
- print(f'You have {Budged - Total_price:.2f} leva left!')
Add Comment
Please, Sign In to add comment