Hi

I have written a very basic program that asks for people to input a number and it works out the factorial of that number and displays it to the screen. However, when people enter a letter instead of a number, the program goes on an unstoppable loop. How can I detect whether a user has entered a letter and deal with it before this happens?

Any help greatly apprecitated!

Thanks

Jamie