From 9f1efda33e3c16d3f32461200dd9c59ef58b199b Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 1 Mar 2020 09:30:48 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/du1/program.c b/du1/program.c index b1c8617..2de3dc7 100644 --- a/du1/program.c +++ b/du1/program.c @@ -6,7 +6,8 @@ int main() { char word; - for (int count = 0; (word = getchar()) != EOF;) { + int count = 0 + for (; (word = getchar()) != EOF;) { if (word >= 'a'&&word <= 'z') { word -= 32; }