Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- height = int(input())
- length = int(input())
- percent = int(input())
- area_for_painting = height * length * 4
- area_for_painting = area_for_painting - area_for_painting * percent / 100
- area = math.ceil(area_for_painting)
- boq = input()
- while boq != "Tired!":
- area -= int(boq)
- if area <= 0:
- break
- boq = input()
- if area == 0:
- print("All walls are painted! Great job, Pesho!")
- elif area > 0:
- print(f"{area} quadratic m left.")
- else:
- print(f"All walls are painted and you have {area * -1} l paint left!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement