Answers for "case with or golang"

Go
0

case in golang

i := 2
    fmt.Print("Write ", i, " as ")
    switch i {
    case 1:
        fmt.Println("one")
    case 2:
        fmt.Println("two")
    case 3:
        fmt.Println("three")
    }
Posted by: Guest on August-26-2021

Browse Popular Code Answers by Language