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