Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- budjet = float(input())
- gpu_qty = int(input())
- cpu_qty = int(input())
- ram_qty = int(input())
- gpu_price = 250.0 * gpu_qty
- cpu_factor = gpu_price * 0.35
- ram_price = (gpu_price * 0.10) * ram_qty
- total_price = gpu_price + cpu_factor + ram_price
- if gpu_qty > cpu_qty:
- discount = total_price * 0.15
- total_price -= discount
- # print(total_price)
- if budjet >= total_price:
- print(f"You have {budjet - total_price:.2f} leva left!")
- if budjet < total_price:
- print(f"Not enough money! You need {total_price - budjet:.2f} leva more!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement