# Ruby Control Structures - Each

# Ruby offers control structures that let you iterate through its collections

# iterate through each of the element in array using *each* and call update_score on it

# https://www.hackerrank.com/challenges/ruby-tutorial-each/problem

def scoring(array)
    array.each do |user|
        user.update_score
    end
end
