编辑代码

#include <stdio.h>
{
   int i=0;
   char c;
   while(1)
   {
	 c='\0';
	 while(c!=13&&c!=27)
	 {
	 c=getch();
	 printf("%c\n",c);
	 }
       if(c==27)
		   break;
	   i++;
	   printf("The no is %d",i);
   }
      printf("The end");
}