fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. char s[10];
  5. scanf("%9[^\n]", s);
  6. getchar(); // consume the remaining \n
  7. puts(s);
  8. scanf("%9[^\n]", s);
  9. puts(s);
  10. }
Success #stdin #stdout 0s 1724KB
stdin
Hello
1234567890
stdout
Hello
123456789