putting data into array of struct

This commit is contained in:
Win 2024-08-29 11:31:46 +07:00
parent c182be9758
commit d4af5c48af
1 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,8 @@ int main()
index++;
}
for (int i = 0; i < MAX_VENDORS; i++) {
for (int i = 0; i < MAX_VENDORS; i++)
{
printf("%d | %s %s %d %d\n", i, vendors[i].vendor_name, vendors[i].merchandise, vendors[i].inventory_count, vendors[i].item_price_baht);
}