输入一行字符(用回车结束),输出每个字符以及与之对应的ASCII代码值,每行输出3对#include<stdio.h>#include<ctype.h>main(){ char ch; int k; for(;;k++) { while((ch=getchar())!='\n') if(k%3==0)printf("\n"); printf("ch=%c ASCII=%d",ch,ch);} }不管输什么结果都是10