I need a condition for a do-while loop that means the loop is repeated (asking user to enter data again) until it is an integer number and between 1 and 25.
while (!isdigit(data) || data < 1 || data > 25);
This just throws out a runtime error and I’m not sure why.
Try this: