Ruby - Loops and Iteration
Identify the error in the following Ruby code using
loop do:
loop do puts "Start" break puts "End" end
loop do:
loop do puts "Start" break puts "End" end
break stops the loop immediately when reached.puts "End" after break will never run because break exits the loop first.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions