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