Homework Day 2

Altered the while loops to use one counter instead of an individual one
for each while loop problem