diff --git a/du4/program.c b/du4/program.c index 1b6e84e..1f69d82 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')||ch==EOF){ break; } }