Write a C program to check whether the character is Numeric, Alphabetical or non of them.

						
 #include  <stdio.h>
 #include  <conio.h>
void main()
{
  char x ;
  printf("Enter any character: ") ;
  scanf("%c" , &x) ;

  /* checks whether the character is a numeral */
  if(x>='0' && x<='9')    
    printf("The character %c is a numeral" , x) ;
  else  if( (x>='a' && x<='z') || (x>='A' && x<='Z') )  /* checks whether the character is an alphabet */
    printf("The character %c is an alphabet" , x) ;         
  else
    printf("The character %c is a neither an alphabet nor a numeral" , x) ;
}			


Output (case 1):

Output






Output (case 2):

Output