#include <stdio.h>#include <conio.h>main(){ int i,j; char ch; while(ch=getch()!='\r') { i++;printf("%c",ch); } printf("you type %dcharacters\n",i);}