From d338ee0fd6bd6a8eae74035a6e77ae1bc608d617 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 17 Mar 2022 20:49:06 +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'du3/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/du3/program.c b/du3/program.c index e707d36..afc96f4 100644 --- a/du3/program.c +++ b/du3/program.c @@ -6,7 +6,7 @@ int main(){ char pol[SIZE]; - memset(pol,' ',SIZE); + memset(pol,'\0',SIZE); pol[SIZE]='\0'; int ch=0; @@ -17,8 +17,13 @@ int main(){ pol[idx]=ch; } - int koef=0; - for(int i=0;i