Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var day string
- fmt.Scanln(&day)
- var price = 0
- switch (day) {
- case "Monday", "Tuesday", "Friday":
- price = 12
- case "Wednesday", "Thursday":
- price = 14
- case "Saturday", "Sunday":
- price = 16
- }
- fmt.Println(price)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement