Nayeemzaman

Untitled

Oct 6th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2. int main ()
  3. {
  4. char ch;
  5. scanf("%c",&ch);
  6.  
  7. if (ch>='a'&&ch<='z'|| ch>='A'&&ch<='Z')
  8. printf("it is an alphabet\n");
  9. else if (ch>='0' && ch<='9')
  10. printf("it is a digit\n");
  11. else
  12. printf("it is a special character\n");
  13.  
  14. return 0;
  15. }
Add Comment
Please, Sign In to add comment