Ruby - Loops and Iteration
Which method would you use to count down from 5 to 2 in Ruby?
downto counts down from the starting number to the given number, so 5.downto(2) is correct.downto counts down = C [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions