Skip to content

Instantly share code, notes, and snippets.

@fukkong
Created April 13, 2019 08:58
Show Gist options
  • Save fukkong/3313908cba0e0e9a66cb4a2fc4892196 to your computer and use it in GitHub Desktop.
Save fukkong/3313908cba0e0e9a66cb4a2fc4892196 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"strconv"
)
func main() {
var n int
var str string
_,_ = fmt.Scan(&n)
for i:=1;i<=n;i++{
str =str+strconv.Itoa(i)+"\n"
}
fmt.Print(str)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment