Skip to content

Instantly share code, notes, and snippets.

@jleo3
Created February 28, 2015 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jleo3/b2b14053abec4703448b to your computer and use it in GitHub Desktop.
Save jleo3/b2b14053abec4703448b to your computer and use it in GitHub Desktop.
E-Go Exercise: Control Structures
package main
import "fmt"
func main() {
for i := 0; i < 10; i++ {
fmt.Printf("%d ", i)
}
fmt.Println("")
for i := 10; i < 20; i++ {
fmt.Printf("%d ", i)
}
fmt.Println("")
for i := 20; i < 30; i++ {
fmt.Printf("%d ", i)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment