answersLogoWhite

0

Here are two functions which you can use to find min and max:

double min(const arr[], int arrSize)
{
double minimum = arr[0];
for (int j = 0; j < arrSize; j++)
{
if (minimum > arr[j])
{
minimum = arr[j];

}

}

return maximum;

}

double max(const arr[], int arrSize)
{
double maximum = arr[0];
for (int j = 0; j < arrSize; j++)
{
if (maximum < arr[j])
{
maximum = arr[j];

}

}

return maximum;

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you find the greatest common factor of variables?

Choose the lowest of the exponents. The GCF of x3 and x5 is x3


What is the greatest common multiple of 900 and 1125?

It is infinite but the lowest common multiple is 4500


How do you find the greatest prime factor for a given number?

Start with the lowest prime factors 2, 3, 5, 7 etc and work up.


how to write a fraction in lowest terms?

Find the GCF of the numerator and the denominator and divide them both by it. If the GCF is 1, the fraction is in its simplest form.


How do find lower and upper extreme?

To find the lower extreme, you need to identify the smallest value in a data set. To find the upper extreme, you need to identify the largest value in the data set. These values represent the lowest and highest points of the data distribution.


How do you reduce a number?

first:you find the gcm(greatest common factor)wich is the lowest number that can go evenly into the numerator and the denominator. next:you devide both the numerator and the denominator by that gcm(greatest common factor)and walla!


How do you put 410 in the lowest terms?

To put 410 in the lowest terms, you need to find the greatest common divisor (GCD) of 410 and reduce the fraction by dividing both the numerator and denominator by the GCD. Since 410 is a prime number, the lowest terms for 410 would be 410/1.


How do you find the value of each expression in lowest terms?

Well, honey, to find the value of an expression in lowest terms, you need to simplify it by dividing the numerator and denominator by their greatest common factor. It's like decluttering your closet - get rid of the unnecessary baggage! Once you've simplified the expression as much as possible, you've got yourself the value in lowest terms. Now go forth and conquer those fractions, darling!


Which are the lowest risk small businesses?

those where you find the greatest amount of unmet needs and easy to get into! [example, selling and installing photo voltaic panels on roof tops]


What is 1018 in lowest terms?

To express 1018 in its lowest terms, we need to find the greatest common divisor (GCD) between 1018 and any other number. Since 1018 is even, it is divisible by 2. Therefore, 1018 in lowest terms is 509/2.


How do you find the greatest number of four digit that is divisible by 936 and 45 by finding the HCF?

It is easier to find the lowest common number, then getting the largest multiple of that that is under 10000. The LCM is 4680, x2 is 9360.


What is the highest common multiple of 8 and 12?

To find the greatest common factor and lowest common multiple of two numbers, you first need to split those numbers up into their prime factors. In this case: 8 = 2x2x2 12 = 2x2x3 The next step is to identify any common factors. In this case the common factors are two 2s. To find the greatest common factor, you multiply these together: 2x2 = 4. A quick way to find the lowest common multiple is to multiply the two original numbers together and divide by the greatest common factor. So 8x12/4 = 24. Thus 24 is the lowest common multiple.