02-28-2021, 10:29 AM
If you want to get the successor of a number in Ruby you can do it as follows:
This will print 2 on the screen
Quote:puts 1.succ
This will print 2 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