printf("Enter Char: ");
printf("You entered %c\n", c);
printf("The ASCII value of %c is %d", c,c);
Okay, that was simple enough, but I need something like this as my output.
printf("The ASCII value of %c is %d and it is a LETTER, DIGIT, or OTHERS", c,c);
I dont know how to setup the LETTER, DIGIT, or OTHERS parts. I know there are functions such as isdigit, but we cannot use them.
For example: if I enter A it will say that it is a LETTER or if I enter 5 it will say that it is a DIGIT and if I enter 'tab' then it will say OTHERS.
Can you guys help me out. I am svery stuck with this.