Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = float(input())
- y = float(input())
- h = float(input())
- green_paint_cover = 3.4
- red_paint_cover = 4.3
- area_door = 1.2 * 2
- windows_area = 1.5 * 1.5
- green_paint = (2 * (x * y) + 2 * (x * x) - area_door - windows_area * 2) / green_paint_cover
- roof_triangle_area = 2 * ((x * h) / 2)
- roof_area = (x * y) * 2
- red_paint = (roof_area + roof_triangle_area) / red_paint_cover
- print(f'{green_paint:.2f}')
- print(f'{red_paint:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment