Ruby - Console (print and put)

Card Puncher Data Processing

print

The print command prints simply to the screen.

print "Hello World"

puts

puts stands for “put string”. It adds a new (blank) line after what you print.

puts "Hello World"







Share this page:
Follow us:
Task Runner