looping arrays

two examples of looping arrays