Ruby - Loops and Iteration
How can you use
downto to print only even numbers from 8 down to 2?downto to print only even numbers from 8 down to 2?8.downto(2) counts down correctly.if i.even? prints only even numbers.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions