Advertisement
RAJIBRAJU

4

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