mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-12-22 21:22:40 +00:00
read user input
This commit is contained in:
parent
c2b8a7c667
commit
306ebd4561
@ -8,5 +8,5 @@ func main() {
|
|||||||
fmt.Println("Hi! Please enter your name...")
|
fmt.Println("Hi! Please enter your name...")
|
||||||
var inpt string
|
var inpt string
|
||||||
fmt.Scan(&inpt)
|
fmt.Scan(&inpt)
|
||||||
fmt.Printf("Hello %s, wellcome on Hacktoberfest!\n", inpt)
|
fmt.Printf("Hello %s, welcome on Hacktoberfest!\n", inpt)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user