From 135d56b9db4ce28e02cfff995f75ceee6333ffa9 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 1 Mar 2020 09:02:42 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu1/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du1/program.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/du1/program.c b/du1/program.c index 41da585..81c9425 100644 --- a/du1/program.c +++ b/du1/program.c @@ -2,6 +2,8 @@ int main(){ char word; + char word; + for (int count = 0; (word = getchar()) != EOF;) { if (word >= 'a'&&word <= 'z') { word -= 32; @@ -11,13 +13,15 @@ char word; } if (word == '\n') { count++; - for(int i =0;i