S
S
Shumar_Boris2017-05-17 16:33:59
go
Shumar_Boris, 2017-05-17 16:33:59

What function in Go language corresponds to input in getchar in C++ or input in Python?

What function in Go language corresponds to input in getchar in C++ or input in Python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
longclaps, 2017-05-17
@Shumar_Boris

package main
import ("fmt")
func main() {
  var s string
  fmt.Scan(&s)
  fmt.Println(s)
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question