Created
May 13, 2015 20:08
-
-
Save ericelsken/e184d90ac15f29d1c2cb to your computer and use it in GitHub Desktop.
Print number repeated number of times.
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 := 1; i <= 9; i++ { | |
for count := 0; count < i; count++ { | |
fmt.Print(i) | |
} | |
fmt.Println() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment