02-26-2021, 08:28 AM
Print will print whatever you have in one line on the screen, even if there are multiple lines in your code.
For example:
This will print the results 3 5 in one line on the screen.
Puts will print whatever you have in a new line on the screen.
For example:
This will print the results
3
5
in two lines on the screen.
For example:
Quote:print 1 + 2
print 2 + 3
This will print the results 3 5 in one line on the screen.
Puts will print whatever you have in a new line on the screen.
For example:
Quote:putsĀ 1 + 2
putsĀ 2 + 3
This will print the results
3
5
in two lines on the screen.