Update cv1/program.c
This commit is contained in:
parent
bacc2869ef
commit
6bc162f509
@ -43,16 +43,15 @@ int main()
|
||||
printf("Zadaj hladanu surovinu:\n");
|
||||
scanf("%s", pizz);
|
||||
|
||||
printf("Zadaj␣jedalny␣listok:\n");
|
||||
while(1)
|
||||
{
|
||||
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;
|
||||
@ -66,7 +65,7 @@ int main()
|
||||
count++;
|
||||
printf("%s %.2f\n", r, price);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
printf("Nacitanyh %d poloziek", count);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user