ruby code hello world code example
Example 1: ruby hello world
print("hello world!")
# hello world!
Example 2: ruby hello
puts "What is your name?"
name = gets.chop
puts "Hello, #{name}!"
print("hello world!")
# hello world!
puts "What is your name?"
name = gets.chop
puts "Hello, #{name}!"