I understand this isn't very efficient. I looked at ASCII table and the value of a is 96 and the value of j is 106, how can I construct a loop knowing the ASCII values of these letters?
Also, I apologise for posting so many threads. One of the best ways to learn is to ask questions whenever you're stuck.
JLBorges has the super legit, least amount of code for this procedure (I'm assuming), but here's a simpler version of input validation using a do-while loop:
1 2 3 4 5 6
do
{
cout << "Enter a letter between a and j: ";
cin >> userInput;
} while(userInput < 'a' || userInput > 'j');