Scope and loop III

Report a typo

var i = 2

for ; i < 5; i++ {
    if i == 4 {
        break
    }
}

fmt.Print(i)

What will be printed in this case?

Enter a number
___

Create a free account to access the full topic