Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = float(input())
- y = float(input())
- h = float(input())
- door = 1.2 * 2
- window = 1.5 * 1.5
- sideA1 = x * x - door
- sideA2 = x * x
- sideB1 = x * y - window
- sideB2 = sideB1
- sideC1 = x * y
- sideC2 = sideC1
- sideD1 = (x * h) / 2
- sideD2 = sideD1
- green = (sideA1 + sideA2 + sideB1 + sideB2) / 3.4
- red = (sideC1 + sideC2 + sideD1 + sideD2) / 4.3
- print(f'{green:.2f}')
- print(f'{red:.2f}')
Advertisement
Add Comment
Please, Sign In to add comment