Update cv1/program.c
This commit is contained in:
parent
18ae51bb38
commit
c77dcf6c27
@ -39,7 +39,7 @@ int main()
|
|||||||
printf("Zadaj␣jedalny␣listok:\n");
|
printf("Zadaj␣jedalny␣listok:\n");
|
||||||
do
|
do
|
||||||
p=fgets(r, 299, stdin);
|
p=fgets(r, 299, stdin);
|
||||||
while(p!=NULL || p[0]=='\n');
|
while(p!=NULL && p[0]=='\n');
|
||||||
if(p==NULL)
|
if(p==NULL)
|
||||||
break;
|
break;
|
||||||
if(scanf("%f", &price)!=1)
|
if(scanf("%f", &price)!=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user