Created
November 5, 2019 21:20
-
-
Save kjk/7e8af34a77b303fe7e1e046cdef6995b to your computer and use it in GitHub Desktop.
for without increment statement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// :collection Essential Go | |
package main | |
import "fmt" | |
func main() { | |
// :show start | |
for i := 0; i < 5; { | |
fmt.Printf("i: %d\n", i) | |
i += 2 | |
} | |
// :show end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment