print vs puts : print « Development « Ruby






print vs puts



9.downto(1) {|n| print n }   # No newline between numbers
puts " blastoff!"            # End with a newline

 

Related examples in the same category

1.print Statement
2.Prints nil: the variable exists but is not assigned