Go code
count := 1
for count <= 3 {
fmt.Println(count)
count++
}Line-by-line explanation
- Count starts at 1.
- For checks one condition.
- The current count is displayed.
- Count increases so the loop can stop.
Expected output
1
2
3This is the expected result.