Is a while loop embedded in if/else if legal?

I had thought that using arrays would be a good solution, but at this point, you're absolutely right, I need to get what I have started working, and then, possibly, get into a more complicated but better and neater array set up. Thanks and I'm certain that I will be needing your programming expertise down the line.