puts, print, and interpolation
This commit is contained in:
3
wikibooks-tutorial/strings.rb
Normal file
3
wikibooks-tutorial/strings.rb
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
print "Enter name: "
|
||||||
|
name = gets.chomp
|
||||||
|
puts "Your name is #{name}"
|
Reference in New Issue
Block a user