Ruby - Loops and Iteration
Identify the problem in this code snippet:
10.upto(7) { |i| puts i }10.upto(7) { |i| puts i }upto counts up from start to end, so start must be less or equal to end.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions