Programming Code Center(PCC)
[C]

(PCC)::[How-to-write-C-Program-to-Check-Whether-a-Character-is-an-Alphabet-or-not]::[c]

File Name : Check_Alphabet.c

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

    if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
        printf("%c is an alphabet.", c);
    else
        printf("%c is not an alphabet.", c);

    return 0;
}

Output :

Check_Alphabet.jpg