public static void Main()
Console.WriteLine("Hello, World!");
string[] product = { "shampoo", "conditoner", "car toy", "pen","football" };
int[] quantity = { 3, 4, 2, 4, 2};
Console.WriteLine("please enter it5em you would like to take");
opt = Console.ReadLine()!;
index = FindProduct(product, opt);
quantity[index] = quantity[index] - 1;
Console.WriteLine("new stock level" + quantity[index]);
Console.WriteLine("thank you");
Console.WriteLine("no more stock");
void ShowProducts(string[] product)
for (int x = 0; x < product.Length; x++)
Console.WriteLine(quantity[x] + product[x]);
int FindProduct(string[] product , string item)
for (int x = 0; x < product.Length; x++)