From a01bf4c6af47c4a6e1a361c04c101a3020584128 Mon Sep 17 00:00:00 2001 From: VIliam Date: Sun, 25 Feb 2024 21:54:37 +0100 Subject: [PATCH] capslock --- cv1/program.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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);