fork(1) download
  1. #include <stdio.h>
  2. #define MAX_LENGTH 1000
  3. #include <locale.h>
  4.  
  5. int main()
  6. {
  7. printf("Введите текст из нескольких предложений:\n");
  8. char t[MAX_LENGTH];
  9. scanf("%999[^\n]", t);
  10. printf("%s", t);
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5296KB
stdin
Standard input is empty
stdout
Введите текст из нескольких предложений:
`no��