主页
Go
Go else if
demo_elseif3
运行 ❯
×
更改方向
保存代码
更改主题
package main import ("fmt") func main() { x := 30 if x >= 10 { fmt.Println("x is larger than or equal to 10.") } else if x > 20 { fmt.Println("x is larger than 20.") } else { fmt.Println("x is less than 10.") } }
x is larger than or equal to 10.