From 18ae51bb38d91bfa98e12d96877e8f5fcdb3bbe6 Mon Sep 17 00:00:00 2001 From: Yurii Yakovenko Date: Tue, 1 Oct 2024 13:12:38 +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 914a534..a251ef6 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)