From cec61287a9dd50efdd8ff82dcbedd902045484ac Mon Sep 17 00:00:00 2001 From: kr820js Date: Thu, 22 Feb 2024 13:47:39 +0100 Subject: [PATCH] corection4 --- cv1/program.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cv1/program.c b/cv1/program.c index 938a137..dd495de 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -6,6 +6,7 @@ int main() char c; int counter=0; while ((c = getchar()) != EOF) { + if (c >= 32 && c <= 126){ if(c<='z'&&c>='a'){ c=c+('A'-'a'); }else if(c<='Z'&&c>='A'){ @@ -15,6 +16,7 @@ int main() counter++; } printf("%c",c); + } } printf("\nLines count: %d\n",counter); return 0;