From 327e4fb0683245c40ad1c120cefbf5b451d719bb Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Sun, 27 Mar 2022 15:25:29 +0200 Subject: [PATCH] aaa --- du4/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }