Update cv1/program.c

This commit is contained in:
Yurii Yakovenko 2024-10-01 14:12:29 +00:00
parent 18ae51bb38
commit c77dcf6c27

View File

@ -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)