Created
June 27, 2016 14:21
-
-
Save edib/2c11f3179875ed44fbb31e7efbff57e6 to your computer and use it in GitHub Desktop.
This file contains 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" | |
) | |
func main() { | |
for { | |
fmt.Print("Enter text: ") | |
var input string | |
fmt.Scanln(&input) | |
if input != "" { | |
fmt.Print(input," \n") | |
} else { | |
return | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment