If I am asking the name and identification number like
[TEX] write(' Introduce your name: ');
write(' Introduce your identification number: ');
and a dull user comes and introduces as a name a number (or a string as identification number) the program stops. How can I solve it?
Related with that. Sometimes I ask for a number and I have as variable a char, so that the program is more robust and doesn't stop if the user introduces the letter 'a'. But, other times, it can't be a char because I need it to indicate the position of an array. The problem is the same. If the user introduces any letter, the program stops.