Advertisement
NaDiRa_AnJuM

Untitled

Jun 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4. char ch;
  5. printf("Enter any character");
  6. scanf("%c",&ch);
  7. if((ch>='A')&&(ch<='Z')||(ch>='a')&&(ch<='z'))
  8. {
  9. printf("%c is Alphabet",ch);
  10. }
  11. else if((ch>=0)&&(ch<=9))
  12. {
  13. printf("%c is digit",ch);
  14. }
  15. else
  16. {
  17. printf("%c is special character");
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement