Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budgetPesho = float(input())
- GPUs = int(input())
- CPUs = int(input())
- discount = 0
- if GPUs > CPUs:
- discount = 0.15
- GPUs *= 250
- CPUs *= GPUs*35/100
- RAMs = int(input()) * GPUs/10
- parts_cost = GPUs+CPUs+RAMs
- final_cost = parts_cost - parts_cost*discount
- if final_cost < budgetPesho:
- print(f'You have {(budgetPesho - final_cost):.2f} leva left!')
- else:
- print(
- f'Not enough money! You need {(final_cost - budgetPesho):.2f} leva more!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement