Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var chickenMenuPrice = 10.35
- var fishMenuPrice = 12.40
- var veganMenuPrice = 8.15
- var delivery = 2.50
- var chickenMenuCount, fishMenuCount, veganMenuCount float64
- fmt.Scanln(&chickenMenuCount)
- fmt.Scanln(&fishMenuCount)
- fmt.Scanln(&veganMenuCount)
- var menuPrice = chickenMenuCount * chickenMenuPrice + fishMenuCount * fishMenuPrice + veganMenuCount * veganMenuPrice
- var dessertPrice = menuPrice / 5
- var totalPrice = menuPrice + dessertPrice + delivery
- fmt.Println(totalPrice)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement