Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char ch;
- printf("Enter any character");
- scanf("%c",&ch);
- if((ch>='A')&&(ch<='Z')||(ch>='a')&&(ch<='z'))
- {
- printf("%c is Alphabet",ch);
- }
- else if((ch>=0)&&(ch<=9))
- {
- printf("%c is digit",ch);
- }
- else
- {
- printf("%c is special character");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement