I have a for loop and I need to enter in sales for four quarters for each of the six divisions. The first example gives me my desired output.The second example which is a loop within a loop says the total sales are $-55535777000 etc.I would like to end with the second example of code to get the desired output. Let me know what you think, thanks.
Hey thanks, it works. I was doing it before ,but when I would try to compile , it kept giving me some some kind warning referencing the count. I went ahead anyways and now the warning no longer comes. I put line 8 in the outerloop.Problem solved.
The warning should be about the fact that you are using the same name (count) for two variables but in your case is not a problem because they have different scopes