logo image

Ruby program to print a multiline Hello World!



Following program shows you how to print a multiline Hello World!. In this program we use \n for multi lines

puts "Hello \nWorld!"

Output:

Hello 
World!