decimal averageIteration = iterationsTotal / iterations.Length;int maxIterations = iterations.Max();
MessageBox.Show("The average number of iterations needed to win are " + averageIteration + "\n" + "The High number was " + maxIterations + "\n" + "The Lowest number was " + iterations.Min());
The code above does not have any trouble outputting an int or decimal types. No need to even use the ToString() method.
Thanks to anyone who can help answer this for me
Cheers
Matt