Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var days, cookers, cakes, waffles, pancakes int
- fmt.Scanln(&days)
- fmt.Scanln(&cookers)
- fmt.Scanln(&cakes)
- fmt.Scanln(&waffles)
- fmt.Scanln(&pancakes)
- sum := float64(days * cookers) * (float64(cakes) * 45.00 + float64(waffles) * 5.80 + float64(pancakes) * 3.20)
- fmt.Printf("%.2f\n", sum - sum / 8)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement