Ruby Ruby Loops Ruby Loops The Ruby Loop

output?

output

loop.rb
def repeat(string, times)
  fail "times must be 1 or more" if times < 1
  counter = 0
  loop do
    puts "hi"
    counter += 1

    if counter == 5
      break
    end

  end
end