Menu
×
×
正确
package main
import ("fmt")
func main() {
var @(3) = 4
switch day {
@(4)(1):
fmt.Print("Saturday")
@(4)(2):
fmt.Print("Sunday")
@(7):
fmt.Print("Weekday")
}
}
package main
import ("fmt")
func main() {
var day = 4
switch day {
case(1):
fmt.Print("Saturday")
case(2):
fmt.Print("Sunday")
default:
fmt.Print("Weekday")
}
}
不正确
点击 此处 重试 正确
下一题 ❯package main import ("fmt") func main() { varw3exercise_input_no_0= 4 switch day {w3exercise_input_no_1(1): fmt.Print("Saturday")w3exercise_input_no_2(2): fmt.Print("Sunday")w3exercise_input_no_3: fmt.Print("Weekday") } } |