Poll: Was this article helpful for you?
You do not have permission to vote in this poll.
Yes
100.00%
1 100.00%
No
0%
0 0%
Total 1 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The difference between print and puts
#1
Print will print whatever you have in one line on the screen, even if there are multiple lines in your code.
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)