// inventory management system -> console based application #include // new product // int -> id // string/ char arr -> name // int-> quantity // float -> price // structure #define MAX_ITEMS 100 typedef struct{ int id; char name[50]; int quantity; float price; }Item; Item inventory[MAX_ITEMS]; int itemCount = 0; // adding items to the warehouse void addItem(){ Item newItem; printf("add items block\n"); printf("Enter id\n"); scanf("%d",&newItem.id); getchar(); printf("Enter name \n"); fgets(newItem.name, sizeof(newItem.name), stdin); printf("enter quantity \n"); scanf("%d",&newItem.quantity); printf("enter price \n"); scanf("%f", &newItem.price); inventory[itemCount] = newItem; itemCount++; printf("operation successfull !"); // arr[index] = value // arr[0] = 1st product // arr[1] = 2nd product // arr[2] = 3rd product } void displayItems(){ for(int i=0; i