Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var b1, b2, h float64
- fmt.Scanln(&b1)
- fmt.Scanln(&b2)
- fmt.Scanln(&h)
- var result = (b1 + b2) * h / 2
- fmt.Printf("%.2f", result)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement