+ 1
Difference between puts and print in ruby?
not able to understand the difference
4 Respostas
+ 3
puts automatically adds a new line after the output, while print does not.
+ 3
For example...
https://code.sololearn.com/cqSGxSbdzzmp/?ref=app
+ 3
puts will provide a new line after the printing. print does not do that.
+ 1
thank you