how to read keyboard input in c
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Enter some keysn");
char c;
while((c = getchar()) != 13) /* 13 is carriage ret in ascii, enter key */
printf("%cn", c);
return 0;
}