Ruby - Loops and Iteration
Which of the following is the correct syntax to count down from 10 to 7 using
downto in Ruby?downto in Ruby?downto starting at 10 and ending at 7.10.downto(7) { |i| puts i } correctly counts down and prints each number.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions