Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- height = float(input())
- width = float(input())
- roof_height = float(input())
- window_area = 1.5 * 1.5
- door_area = 1.2 * 2
- big_walls = height * width * 2 - 2 * window_area
- small_walls = height * height * 2 - door_area
- roof_rectangle = height * width * 2
- roof_triangles = height * roof_height / 2 * 2
- total_walls = big_walls + small_walls
- total_roof = roof_rectangle + roof_triangles
- paint_walls = total_walls / 3.4
- paint_roof = total_roof / 4.3
- print(f"{paint_walls:.2f}")
- print(f"{paint_roof:.2f}")
Advertisement
Add Comment
Please, Sign In to add comment