fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4. #include <stdlib.h>
  5.  
  6.  
  7.  
  8. int main()
  9. {
  10. char ch[1000];
  11. while (ch[strlen(ch) - 1] != '.')
  12. {
  13. scanf("%s", ch);
  14. printf("[%s]\n",ch);
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 4692KB
stdin
sfhg dhjjsd sjkbhjas sdjkj. gyug
stdout
[sfhg]
[dhjjsd]
[sjkbhjas]
[sdjkj.]