Ruby Notes - Input and Output
-
puts - prints a value and makes a new line
-
print - prints a value without a new line
-
gets - used to get input from prompt
-
gets.chomp - removes the carriage return at the end.
puts - prints a value and makes a new line
print - prints a value without a new line
gets - used to get input from prompt
gets.chomp - removes the carriage return at the end.