This was part of my homework problem. This is the code I ended up with that works for what was required, but wanted to know if there is a simpler way to do this problem? Really I would prefer not to use breaks, but not really sure how without them...Any input is appreciated as I just want to understand for future assignments!