Advertisement
Guest User

alphabet

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