I am using a multi-dimensional array to store the total amount of product sold (products range 1 to 5) by a particular salesperson (1 to 4 salespersons).
T arranged
First off, don't use all your code if it's not needed. You only need the declaration and maybe one for-loop.
Loop through columns:
for(int i=0; i