update program.c

This commit is contained in:
Ivan Leichenko 2024-09-30 20:48:35 +00:00
parent 2ed6d21be9
commit 7e9c26ead7

View File

@ -100,7 +100,7 @@ int main()
return 0; return 0;
} }
printf("%s\n%.2f\n", menu[item].name, menu[item].price); printf("%s\n%.2f\n", menu[item].name, menu[item].price);
printf("Nacitanych %d poloziek.", itemc); printf("Nacitanych %d poloziek.\n", itemc);
for (int i = 0; i < itemc; i++) for (int i = 0; i < itemc; i++)
{ {
free(menu[i].name); free(menu[i].name);