fork download
  1. #include <stdio.h>
  2. main()
  3. {
  4. int c, nl;
  5. nl = 0;
  6. while ((c = getchar()) != EOF)
  7. if(c == '\n')
  8. ++nl;
  9. printf("%d\n", nl);
  10. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
0