#include<stdio.h>
#define M (a>=‘a‘&&a<=‘z‘)?1:0
#define N (a>=‘A‘&&a<=‘Z‘)?1:0
#include<stdlib.h>
main()
{
char a;
int b;
scanf("%c",&a);
if(a>=‘a‘)
b=M;
else b=N;
printf("%d\n",b);
system("pause");
return 0;
}
时间: 2024-10-16 02:35:50