Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char ch;
- scanf("%c", &ch);
- if(ch >= 'a' && ch <= 'z')
- printf("Small letter\n");
- else if(ch >= 'A' && ch <= 'Z')
- printf("Capital letter\n");
- else if(ch >= '0' && ch <= '9')
- printf("Digit\n");
- else
- printf("Punctuation");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement