C Program to check uppercase or lowercase Alphabets

#include<stdio.h>
int main()
{
	char ch;
	printf("Enter any Alphabet: ");
	scanf("%c",&ch);

	if(ch >= 'A' && ch <= 'Z')
	{
		printf("%c is Uppercase Alphabet",ch);
	}
	else if(ch >= 'a' && ch <= 'z')
	{
		printf("%c is Lowercase Alphabet",ch);
	}
	else
	{
		printf("%c is not Alphabet",ch);
	}

	return 0;
}

Output

Enter any Alphabet: B
B is Uppercase Alphabet