diff --git a/du4/program.c b/du4/program.c index 0bbebde..afbf4d7 100644 --- a/du4/program.c +++ b/du4/program.c @@ -13,7 +13,7 @@ int main(){ count++; } ch=getchar(); - if(priklad[idx]!='\n'&&ch!='\n'){ + if(priklad[idx]=='\n'&&ch=='\n'){ break; } }