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)
- switch (day) {
- case "Monday", "Tuesday", "Wednesday", "Thursday", "Friday":
- fmt.Println("Working day")
- case "Saturday", "Sunday":
- fmt.Println("Weekend")
- default:
- fmt.Println("Error")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement