ghorardim

sobui

Sep 16th, 2018
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.66 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. int main()
  4. {
  5.     char ch;
  6.     int i,t,len;
  7.     scanf("%d",&t);
  8.     getchar();
  9.     while(t--)
  10.     {
  11.         scanf("%c",&ch);
  12.         getchar();
  13.  
  14.             if(ch>='a'&&ch<='z')
  15.             {
  16.                 printf("Lowercase Character\n");
  17.             }
  18.  
  19.             else if(ch>='A'&&ch<='Z')
  20.             {
  21.                 printf("Uppercase Character\n");
  22.             }
  23.  
  24.             else if(ch>='0'&&ch<='9')
  25.             {
  26.                 printf("Numerical Digit\n");
  27.             }
  28.  
  29.             else
  30.             {
  31.                 printf("Special Character\n");
  32.             }
  33.  
  34.  
  35.     }
  36.     return 0;
  37. }
Advertisement
Add Comment
Please, Sign In to add comment