Ruby Output methods
Output methods using puts, print, printf
puts "puts works"
puts " with line breaks."
print "print works"
print " with no line breaks."
printf("\n\nprintf formats numbers like %7.2f, and strings like %s.\n",3.14156,"me")
puts "puts works"
puts " with line breaks."
print "print works"
print " with no line breaks."
printf("\n\nprintf formats numbers like %7.2f, and strings like %s.\n",3.14156,"me")