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