Advertisement
Spocoman

Excursion

Oct 8th, 2024
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.34 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6.     var people, nights, cards, tickets int
  7.     fmt.Scanln(&people)
  8.     fmt.Scanln(&nights)
  9.     fmt.Scanln(&cards)
  10.     fmt.Scanln(&tickets)
  11.  
  12.     total := (20.00 * float64(nights) + 1.60 * float64(cards) + 6.00 * float64(tickets)) * float64(people) * 1.25
  13.  
  14.     fmt.Printf("%.2f\n", total)
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement