Skip to content

Instantly share code, notes, and snippets.

@ericelsken
Created May 13, 2015 20:08
Show Gist options
  • Save ericelsken/e184d90ac15f29d1c2cb to your computer and use it in GitHub Desktop.
Save ericelsken/e184d90ac15f29d1c2cb to your computer and use it in GitHub Desktop.
Print number repeated number of times.
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