How to print hello world in Ruby
In this example, you will learn about how to create and print a hello world program in ruby language.
- Create a new file called
hello_world.rb. - Add the following code.
hello_world.rb
puts "Hello World!"- Run the above code by typing
ruby hello_world.rbin your terminal and you will seeHello World!.


