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