#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|| ch=="")
         break;
      i++;
   }
   printf("\nYou entered the words: \n %s", word);
   
   return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: