Combining Array and Loop

I just want to know If I can combine the 2 codes together, that I created, or do I have to start over?
The new assignment is to: Use an array for the different loans. Display the mortgage payment amount for each loan. Then, list the loan balance and interest paid for each payment over the term of the loan. Use loops to prevent lists from scrolling off the screen.