Answers for "user input ruby"

1

get input from user in ruby

def input(text)
    $stdout.print text.to_s
    return gets
end

input("Whats your name ? ")
Posted by: Guest on July-29-2021
0

how to request user input in ruby

puts "Hello! My name is Kyle, what's yours?"
name = gets
Posted by: Guest on August-10-2020

Browse Popular Code Answers by Language