Created
February 28, 2015 15:11
-
-
Save jleo3/b2b14053abec4703448b to your computer and use it in GitHub Desktop.
E-Go Exercise: Control Structures
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
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