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