编辑代码

#include <stdio.h>
int main () {
    char input;
    printf("Input an ASCII character:");
    scanf("%c",&input);
    printf("The ASCII code of \'%c\' is %d\n",input,input);
	return 0;
}