Ruby Ruby Loops Ruby Loops Loop Conditionals

chelsea katsidzira
chelsea katsidzira
2,590 Points

i dont understand what it's asking me to do?

the instructions aren't clear enough for me

loop.rb
# Assume get_answer() is already defined
loop do
  print "what?"
  answer = gets.chomp!
  if answer == "e"
    break
  end
end

1 Answer

Take a look at https://teamtreehouse.com/community/ruby-loop-get-answer-loop-not-working to shed some light on the situation. Hope that helps.

Happy codding!