From c77dcf6c2706a18994e546e8460af43522352495 Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Tue, 1 Oct 2024 14:12:29 +0000 Subject: [PATCH] Update cv1/program.c --- cv1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv1/program.c b/cv1/program.c index a251ef6..914a534 100644 --- a/cv1/program.c +++ b/cv1/program.c @@ -39,7 +39,7 @@ int main() printf("Zadaj␣jedalny␣listok:\n"); do p=fgets(r, 299, stdin); - while(p!=NULL || p[0]=='\n'); + while(p!=NULL && p[0]=='\n'); if(p==NULL) break; if(scanf("%f", &price)!=1)