02-26-2021, 08:28 AM
(This post was last modified: 02-26-2021, 02:21 PM by Qomplainerz.)
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.
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos