C Program To Check Whether A Character Is Alphabet or Not

Example
#include <conio.h>

#include <stdio.h>

void main()
{
char ch;
printf("\nEnter a character: \n");
scanf("%c", &ch);

if( (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') )
{
printf("\n %c is an Alphabet", ch);
}
else

{
printf("\n %c is not an Alphabet", ch);

}

getch();
}


 
Program Output

Enter a character : a

a is an Alphabet