Learn Ruby
Puts for printing
2.1
Lesson

I love ice cream

In Ruby puts is used for printing.

Here we will print “I love ice cream” using puts.

Run the code shown below by clicking on the Run code button to see the result.