/*2_1字母大小写的转换*/ #include<stdio.h> int main() { char ch1,ch2; printf("Input a captical letter:"); ch1 = getchar(); ch2 = ch1 + 32; printf("ASCLL of %C is %d\n",ch1,ch1); printf("ASCLL of %c is %d",ch2,ch2); }