Go code
age := 14
if age >= 13 {
fmt.Println("Teen account")
}Line-by-line explanation
- Age is stored.
- The if condition needs no parentheses.
- The opening brace begins the block.
- The message runs because the condition is true.
- The closing brace ends the block.
Expected output
Teen accountThis is the expected result.