Prog#112: Classify Upper & lower case and digit until $

/* 
Program#112
Classify Upper & lower case and digit until $
*/

#include <stdio.h>
main(){
char ch;

for(scanf("%c",&ch);ch!='$';scanf("%c",&ch))
if(ch>=65 && ch<=90)
printf("\nUpper case : %c",ch);
else if(ch>=97 && ch<=122)
printf("\nLower case : %c",ch);
else if(ch>=48 && ch<=57)
printf("\nDigit : %c",ch);
else
printf("\n Special char:%c",ch);
}