You have calculated the values and displayed them inside the loop. You have displayed the summary outside the loop, where the variables that you declared will hold only the final value.

To have the details of all the items, you can have another variable, say str.
For every loop, append the details(variables that you already declared) at the end of the variable 'str'.

So, at the end of the loop, the variable 'str' will have all the items' details and you can print it.
Stormstreet like this