Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var people, nights, cards, tickets int
- fmt.Scanln(&people)
- fmt.Scanln(&nights)
- fmt.Scanln(&cards)
- fmt.Scanln(&tickets)
- total := (20.00 * float64(nights) + 1.60 * float64(cards) + 6.00 * float64(tickets)) * float64(people) * 1.25
- fmt.Printf("%.2f\n", total)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement