Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var bedPrice, toiletPrice float64
- fmt.Scanln(&bedPrice)
- fmt.Scanln(&toiletPrice)
- foodPrice := toiletPrice * 1.25
- toyPrice := foodPrice / 2
- vetPrice := toyPrice * 1.1
- sum := (toiletPrice + foodPrice + toyPrice + vetPrice) * 12 * 1.05 + bedPrice
- fmt.Printf("%.2f\n", sum)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement