Original Post
well I am trying to take an array of numbers and determine the highest and lowest number.I want to output the numbers to the screen using c++.
biggest = smallest = array[0];
for (int i = 1; i < length; i++)
{
if (array > biggest) biggest = array;
if (array < smallest) smallest = array;
}
This topic has been locked by a moderator. New replies are not allowed.
GameDev.net uses cookies to ensure you have the best experience on our platform. Learn more