#include <stdio.h> int main() { char a = 0;//初始化 while (scanf(" %c", &a) != EOF)//多组输入,每一行输入一个字符 { if ((a >= 65 && a<= 90) || (a >= 97 && a<= 122))//字符为字母的ascii码 printf("%c is an alphabet.\n", a); else printf("%c is not an alphabet.\n", a); } return 0; }