Write a C Programm to find whether input character is digit, alphabet, alphanumeric

//Enter the character one by one last is zero and display the
//type of that character. if it is alphabetic then convert into the
//uppercase.


/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/

#include
#include
#include

void main(){
char ch;
clrscr();
while(1){
printf("\nEnter ZERO to Terminate \n");
printf("Enter any character : ");
scanf("%c",&ch);
if(ch=='0')
break;
else if(isspace(ch))
printf("\nCharacter is a Space\n");
else if(isdigit(ch))
printf("\nCharacter is a Digit\n");
else if(isalpha(ch))
printf("\nCharacter is a Alphabet and it's uppercase is %c\n",toupper(ch));
else if(isalnum(ch))
printf("\nCharacter is a Alphanumeric\n");
else
printf("\nCharacter is a %c\n",ch);
getch();
}
}



Powered by Wufoo