Ruby - Loops and Iteration
Which Ruby
for loop correctly prints all even numbers between 2 and 12 inclusive?for loop correctly prints all even numbers between 2 and 12 inclusive?i.even? to filter even numbers correctly.i % 2 != 0.i.even? or i % 2 == 0 to check even numbers [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions