Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char ch;
- int i,t,len;
- scanf("%d",&t);
- getchar();
- while(t--)
- {
- scanf("%c",&ch);
- getchar();
- if(ch>='a'&&ch<='z')
- {
- printf("Lowercase Character\n");
- }
- else if(ch>='A'&&ch<='Z')
- {
- printf("Uppercase Character\n");
- }
- else if(ch>='0'&&ch<='9')
- {
- printf("Numerical Digit\n");
- }
- else
- {
- printf("Special Character\n");
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment