read user input

This commit is contained in:
grendach 2018-10-06 16:46:28 +02:00
parent c2b8a7c667
commit 306ebd4561

View File

@ -8,5 +8,5 @@ func main() {
fmt.Println("Hi! Please enter your name...")
var inpt string
fmt.Scan(&inpt)
fmt.Printf("Hello %s, wellcome on Hacktoberfest!\n", inpt)
fmt.Printf("Hello %s, welcome on Hacktoberfest!\n", inpt)
}