#include<stdio.h>
int main()
{char c,c1
scanf("%c",&c)
c1=(c>='a'&&c<='z')?c-32:c
if(c1>='A'&&c1<='Z')
printf("%c是第%d个字母\n",c,c1-'A'+1)
else printf("%c不是英文字母\n",c)
return 0
}
#include<stdio.h>void main() { char s[10],c,b
scanf("%s",s)c=s[0]b=0
if ( c>='a' &&c<='z' ) b='a'else if ( c>='A' &&c<='Z' ) b='A'
if ( b==0 ) printf("字符%c不是字母.\n",c)
else printf("字母%c是第%d个字母.\n",c,c-b+1)
}