+ 1
User input
Does Ruby allow user input ?
4 odpowiedzi
+ 2
gets
example:
name = gets
puts name
+ 2
yes.
x=gets ..... that will take user input and store it as a variable called x
puts x ........ that will print the variable you stored to the screen.
+ 2
yes thank you
+ 1
"x=gets
puts x"
will give output = user input ?