代码要求判断输入的是否是字母
#include <stdio.h>
int main()
{
char c;
printf("Please enter a character ");
scanf("%d", &c);
((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) && printf("The character you entered is %d,it is an alphabet.", c);
((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')) || printf("The character you entered is %d,it isn't an alphabet.", c);
return 0;
}