Our project is to write a program that will validate credit card numbers. I am wanting to put a validation check at the beginning of the program so if the user enters a number that has less than 13 digits or more than 16 digits it displays an error message and then ends the program. I have read on here that the best (most graceful) way of doing it is to let the program run itself out. However, throughout the program I have other information displayed. So currently it will display the error message and then continue on with the program.
Any advice will be most helpful.