diff --git a/cv1/program.c b/cv1/program.c index e8b1973..85dd500 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -1,12 +1,12 @@ #include -#include +#include int main() { char ch; int line_count = 0; - while ((ch = getchar()) != EOF) { if (ch == '\n') { + putchar('\n') line_count++; } else { if (isprint(ch)) {