Hey yall, here is another Im having problems with. Here is what I am supposed to do with this program: 1)Write a statement to declare a 20 x 30 two-dimensional array of doubles named MyArr 2)Write statements to fill out the array MyArr declared above with numbers from 0.0 to 599.0, row-by-row from top to bottom. 3)Write statements to find the sum of all elements in the array MyArr declared above. I have it all covered but my loops only top out at 551.0 and not 599.0, what am I missing? Do I need a weapon R cold air intake system to get me over the hump? Here is the code. Thanks yall.
[ edited to alleviate the pain of scrolling left and right -ds ] [ March 25, 2003: Message edited by: Dirk Schreckmann ]
I think he was pointing out the reason that your array "tops out at 551." Since you are calculating the values with i*j and the maximum values of i and j are 19 and 29, respectively, this means the maximum value in the array will be 19*29 or 551.