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