题解 | #判断是不是字母#
判断是不是字母
https://www.nowcoder.com/practice/91a588dd4cd244bfa616f17603ec123c
#include <stdio.h>
int main()
{
char x;
while ((x=getchar()) != EOF)
{
getchar();
if (x >= 'a' && x <= 'z' || x >= 'A' && x <= 'Z')
printf("%c is an alphabet.\n", x);
else
printf("%c is not an alphabet.\n", x);
}
return 0;
}