#include<stdio.h> int main() { int c = 0; int ch; while((ch=getchar())!=EOF) { c++; printf("count:%d char:%c\n",c,ch); } return 0; }