For example in this line of code I wrote, print and puts produce different results.

1.upto(1000).each { |i| print i if i % 2 == 0 }

6 Answers
6

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *