+ 1
Structs and array help
I'm trying to complete a question, that is asking to calculate profit on orders, I can't get the code to either utilise every product in an order, it only completes the first product. there is also an issue that the discount can't be used, it says that as it's on a foreach loop, it can't be changed data is arranged as order number, customer ID, list of products separated by commas
3 Respuestas
+ 1
https://code.sololearn.com/cOcgnNUtkm9a/?ref=app
codes been updated
+ 1
The code currently up there will output the first product in a customers order, but will then move onto the next order, even if there is more than one product in a order
0
A sample of the code will be nice