Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- budget = float(input())
- floor_width = float(input())
- floor_length = float(input())
- side_triangle = float(input())
- height_triangle = float(input())
- price_plate = float(input())
- craftsman_price = float(input())
- floor = floor_length * floor_width
- triangle = (side_triangle*height_triangle)/2
- plate = math.ceil(floor / triangle)
- plate1 = plate + 5
- all_money = (plate1 * price_plate) + craftsman_price
- money = budget - all_money
- money1 = abs(all_money - budget)
- if all_money <= budget:
- print(f"{money:.2f} lv left.")
- else:
- print(f"You'll need {money1:.2f} lv more.")
Advertisement
Add Comment
Please, Sign In to add comment