Advertisement
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_price = Video*250
- Processors_price = float(Processors*(Video_price*0.35))
- Ram_price = float(Ram*(Video_price*0.10))
- Total_price = Video_price + Processors_price + Ram_price
- if Video > Processors:
- Total_price *= 0.85
- if Budged > Total_price:
- print(f"You have {Budged-Total_price:.2f} leva left!")
- else:
- print(f"Not enough money! You need {Total_price-Budged:.2f} leva more!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement