This commit is contained in:
Džubara 2024-02-25 21:54:37 +01:00
parent 4fd5bd1b73
commit a01bf4c6af

View File

@ -14,10 +14,13 @@ int main() {
if (c == '\n') { if (c == '\n') {
lineCount++; lineCount++;
} }
putchar(c); putchar(c);
} }
if((c = getchar()) == EOF){
return -1;
}
printf("\nLines␣count: %d\n",lineCount); printf("\nLines␣count: %d\n",lineCount);