How about an input function?

julia> function input(prompt::String="")
         print(prompt)
         chomp(readline())
       end
input (generic function with 2 methods)

julia> name = input("What's your name? ");
What's your name? Ismael

julia> println("Hello $(name)!")
Hello Ismael!


Reply via email to