From 18ac296d1b482abbad661bb3e7afff3df8b73058 Mon Sep 17 00:00:00 2001 From: Vladyslav Korzun Date: Fri, 17 Feb 2023 15:05:33 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'du1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du1/program.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/du1/program.c b/du1/program.c index 1b89ce2..2101f00 100644 --- a/du1/program.c +++ b/du1/program.c @@ -7,7 +7,10 @@ int count = 0; int riadok = 0; int pop = 0; while(c != EOF){ -c = getchar(); +c = getchar(); +if(c == EOF){ +break; +} if((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')){ if(islower(c)){ c = toupper(c);