Created
April 13, 2019 08:58
-
-
Save fukkong/3313908cba0e0e9a66cb4a2fc4892196 to your computer and use it in GitHub Desktop.
This file contains hidden or 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" | |
"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