Prog#058: Read & determine upper lower digit and special chars - until -$

/* 
Program#58/
Read & determine upper lower digit and special chars - until -$
*/

#include <stdio.h>
main(){
char a;
scanf("%c ",&a); 
while(a!='$'){

if(a>=65 && a<=90)
printf("\n%c is uppercase letter\n",a);
else
if(a>=97 && a<=122)
printf("\n%c is Lowercase letter\n",a);
else
if(a>=48 && a<=57)
printf("\n%c is a Digit\n",a);
else
printf("\n%c is Special character\n",a);

scanf("%c ",&a); 
}
}