#include <stdio.h>
int main()
{
char character;
printf("Enter a character:\n");
scanf("%c",&character);
printf("The character entered by the user=%c\n",character);
if(character>='A' && character<='Z')
{
printf("The character is ALPHABET\n");
}
else if(character>='a' && character<='z')
{
printf("The character is ALPHABET\n");
}
else if(character>='0' && character<='9')
{
printf("The character is DIGIT\n");
}
else
{
printf("The character is a SPECIAL CHARACTER\n");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: