#include <stdio.h>
#include <stdlib.h>
int main()
{
char ch,cont,val=1;
printf("Enter the charecter: ");
ch=getchar();
if(((ch>='a')&&(ch<='z'))||((ch>='A')&&(ch<='Z')))
{
printf("\nEntered input is 'Alphabet'");
}
else
if((ch>='0')&&(ch<='9'))
{
printf("\nEntered input is Digit");
}
else
{
printf("\nEntered input is Special Charecter \n");
}
}
Comments
Post a Comment