Stocking out


stock[x]-=1 ,,, what this code do?? i am not clear bout this at all??

Replace this line with your code.


it reduces the stock quantity of a product by one


you mean to say any product???,,,or specifically apple or orange??


this depends on x (your loop iterator), each iteration of the loop, x will contain a product, whatever the product is, that stock will be reduced by one


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.