Please help me
cout<<"Please Enter the Values:\n";
The Program Gets Teriminated if we give any character.but it should come out of the loop rather than terminating.
While it is terminated .The program exits .Please help me
If you cin into a number and type something (like a letter) that cin can't figure out how to convert into a number, it will fail, leaving the variable you were reading into untouched and cin in a fail state.
See e.g. http://cboard.cprogramming.com/cplus...ad-number.html