package main
import (
"fmt"
)
func main(){
/*
reader := bufio.NewReader(os.Stdin)
fmt.Print("Enter name:")
var name, _ = reader.ReadString('\n')
fmt.Println("name is :" + name)
*/
fmt.Print ("Enter text:")
var input string
fmt.Scanln(&input)
fmt.Print(input)
}
import (
"fmt"
)
func main(){
/*
reader := bufio.NewReader(os.Stdin)
fmt.Print("Enter name:")
var name, _ = reader.ReadString('\n')
fmt.Println("name is :" + name)
*/
fmt.Print ("Enter text:")
var input string
fmt.Scanln(&input)
fmt.Print(input)
}
No comments:
Post a Comment