From 096061440a75569a6563030ed56a0eae828839d7 Mon Sep 17 00:00:00 2001 From: Oleksandr Hryshchenko Date: Tue, 23 Feb 2021 16:33:57 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du1/program.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/du1/program.c b/du1/program.c index 175aa30..5c2e1ab 100644 --- a/du1/program.c +++ b/du1/program.c @@ -1,5 +1,6 @@ #include #include +#include int main (){ char c[100]; @@ -30,11 +31,11 @@ int main (){ for(int i = 0; i < 100; i++){ if(c[i] == '\n') break; if(isupper(c[i])) - printf(tolower(c[i])); + printf("%c", tolower(c[i])); else if(islower(c[i])) - printf(toupper(c[i])); + printf("%c", toupper(c[i])); else - printf(c[i]); + printf("%c", c[i]); } } //counter++;