CHARACTER – UPPER OR LOWER in C Programming

Image result for c programming

CHARACTER – UPPER OR LOWER in C Programming
Code:
  #include<stdio.h>
int main()
{
  char a;
  scanf("%c",&a);
  if(a>='A' && a<='Z')
  printf("%c is uppercase letter",a);
  else if(a>='a' && a<='z')
  printf("%c is lowercase letter",a);
    else
  printf("%c is neither an uppercase or lowercase letter",a);
  return 0;
}

No comments