"Exit program?(Y/N): " does not really do what the user expects ;-)
Yes,yes, that's right, is just the end of the program, just a mark to distinguish the others parts: the loop back to the beginning, because of the input error, from the correct way.

Thanks for trying it jj! :t
Btw: Also it should say maximum not maximun, right?
