Just posted a different problem earlier today but now its something else. when I try to find the sum of the array I get random numbers that are obviously wrong any help would be appreciated.
Your array has a size of 25, and you did not initialize any of the elements. You assign numbers for the first ten indices. Then you proceed to sum all 25 numbers, including the uninitialized elements which will probably hold garbage data.