Skip to content
Quiz · Conditions · lesson 5 of 7

Quiz — switch in Go

Question 1 of 2

What does the program print?

GO
package main

import "fmt"

func main() {
    switch x := 5; {
    case x > 3:
        fmt.Print("a")
    case x > 1:
        fmt.Print("b")
    }
}

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way