Posted by **Sing** on Friday, December 15, 2006 at 8:07pm.

If we have any five numbers. how do we find maximum and minimum number of those.

You take the first number and store it in variable Min and Max. Then you take the second number. If that number is larger than the variable Max you overwrite Max and store that varible there. If not then you check if it is smaller than the value stored in Min. If so, you store it there, overwriting the previous stored value. You repeat this for all five variables.

## Answer This Question

## Related Questions

- C programming - Question: Write a program that reads integers from the keyboard ...
- math - Please help me to find the five-number summary of the following set of ...
- MAth - If 1 gallon (gal) of water weighs 8.34 pounds (lb), how much does 3.75 ...
- Please check my Calculus - 1. Find all points of inflection: f(x)=1/12x^4-2x^2+...
- Please check my Calculus - 1. Which of the following describes the behavior of f...
- Math- Double check - Please double check me Find the median of the following set...
- Math - i^6 = (i^2)^3 = (-1)^3 = -1 The square, not the square root of -1 is 1...
- Math - 1. Which of the following numbers are integers?11/3, 9.7, -163, -3/8, 1 A...
- math - Find the value(s) of x for the following. (Enter your answers as a comma-...
- Math(Urgent) - Compute the maximum product for two positive numbers x and y with...

More Related Questions