SHARE
TWEET

alphabet

a guest May 25th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top