Is there an easy way to call a C script to see if the user inputs a letter from the English alphabet? I\'m thinking something like this:
if (variable == a -
Aside from the isalpha function, you can do it like this:
char vrbl; if ((vrbl >= 'a' && vrbl <= 'z') || (vrbl >= 'A' && vrbl <= 'Z')) { printf("You entered a letter! You must enter a number!"); }