Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var x, y, h float64
- fmt.Scanln(&x)
- fmt.Scanln(&y)
- fmt.Scanln(&h)
- var green = x * y * 2 - (1.5 * 1.5 * 2) + x * x * 2 - 1.2 * 2
- var red = 2 * (x * y) + 2 * (x * h / 2)
- fmt.Printf("%.2f\n%.2f\n", green / 3.4, red / 4.3)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement