Ruby - Loops and Iteration
You want to create an array of squares of numbers from 1 to 5 using
upto. Which code correctly does this?upto. Which code correctly does this?upto starting at 1.1.upto(5) and appends squares correctly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions