Looping over arrays

two example of looping arrays