Skip to content

io::input

input()
input(prompt: String)

ParameterTypeDescription
(optional) promptStringText that should be printed before the input prompt

Reads the next line from the standard input stream. This is used to get input from the user in a terminal.

Returns

(String) The value given by the user.