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 }
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 }