I have an assignment that requires me to populate a two dimensioanl array and then use it to prepare a summary based on that array.
Ex. three stores each have three products, have the user input the total of each product for each store and then have the program list that information.
As far as I have gotten is this code for populating the array:
int iar[3][4]
for (rown=0;rown<3;j++)
for(coln=0;coln<4;k++)
printf("enter element ar[%d][%d]",rown, coln);
scanf("%d",&iar[rown][coln]);
If i could just get somebody to show me a complete program that populates a two dimensional array and then lists that information, I could finish the rest of the program.
Thanks to anybody that can help