Quote Originally Posted by brewbuck View Post
Thus the "return 0;" at the end of each
I realized that before seeing your post, and removed my edit. But the whiles should still go, just because it's weird to use while instead of if when it's only going to execute at most once.