Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var screeningType string
- fmt.Scanln(&screningType)
- var rows, columns int
- fmt.Scanln(&town)
- fmt.Scanln(&columns)
- var ticketPrice = 0.0
- if (screeningType == "Premiere") {
- ticketPrice = 12.00
- } else if (screeningType == "Normal") {
- ticketPrice = 7.50
- } else {
- ticketPrice = 5.00
- }
- fmt.Printf("%.2f leva\n", rows * columns * ticketPrice)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement