diff --git a/cv1/program.c b/cv1/program.c index 2616d70..f9e9bee 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -14,10 +14,13 @@ int main() { if (c == '\n') { lineCount++; } - + putchar(c); } + if((c = getchar()) == EOF){ + return -1; + } printf("\nLinesā£count: %d\n",lineCount);