#include<stdio.h> int main() { char x,y; int z; x='A',y='B'; z=x+y; printf("z=%d\n",z); return 0; }
#include<stdio.h> int main() { char x,y; int z; printf("请输入两个字符:"); scanf("%c%c",&x,&y); z=x+y; printf("z=%d\n",z); return 0; }
#include <stdio.h> int main() { char x,y; scanf("%c %c",&x,&y); printf("%c+%c = %d",x,y,(x-'0')+(y-'0')); return 0; }