From d4af5c48af4c6def6f114f9cbf08051e5a619752 Mon Sep 17 00:00:00 2001 From: Win Date: Thu, 29 Aug 2024 11:31:46 +0700 Subject: [PATCH] putting data into array of struct --- vendorInfo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vendorInfo.c b/vendorInfo.c index d7d3f88..65347c1 100644 --- a/vendorInfo.c +++ b/vendorInfo.c @@ -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); }