题解 | #判断是不是字母#
判断是不是字母
https://www.nowcoder.com/practice/91a588dd4cd244bfa616f17603ec123c
#include <stdio.h> int main() { char x; while(scanf("%c",&x) != EOF) { getchar();//用来除掉 \n if((x>=65 && x<=90)||(x>=97 && x<=122)) printf("%c is an alphabet.\n",x); else printf("%c is not an alphabet.\n",x); } return 0; }