#include <stdio.h>
int main(){
char ch;
char word[10000];
int i = 0;
printf("Enter characters. End by pressing the Enter key: ");
while(1){
ch = getchar();
word[i] = ch;
if (i == 5000)//|| word[i] == NULL)
break;
i++;
}
printf("\nYou entered the word: %s", word);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: