题解 | #判断字母#
判断字母
http://www.nowcoder.com/practice/44d2d63103664913bc243d3836b4f341
#include<stdio.h>
//A-Z == 65-90
//a-z == 97-122
int main() {
char ar;
scanf("%c", &ar);
if (ar >= 65 && ar <= 90 || ar >= 97 && ar <= 122) printf("YES");
else printf("NO");
return 0;
}
//A-Z == 65-90
//a-z == 97-122
int main() {
char ar;
scanf("%c", &ar);
if (ar >= 65 && ar <= 90 || ar >= 97 && ar <= 122) printf("YES");
else printf("NO");
return 0;
}