Numeric variable on ruby have upto method that we can use to do looping. Normally looping is done by using while or for syntax. Ruby can do differently.
Example above we loop from 10 to 15. Its simpler right.
A Computer Person Journey
Numeric variable on ruby have upto method that we can use to do looping. Normally looping is done by using while or for syntax. Ruby can do differently.
Example above we loop from 10 to 15. Its simpler right.