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 ...
- Grade 8 Math - Can you write them in Mathematical/numbers form I'll solve them ...
- algebra 2 - one number is two less than a second number. If you take one-half of...
- Algebra I - The sum of three numbers is 147. The second number is 4 more than ...
- Math - i^6 = (i^2)^3 = (-1)^3 = -1 The square, not the square root of -1 is 1...
- Algebra II - One number is two less than a second number. If you take one-half ...
- MS. SUE - MATH HELP PLEASE - The sum of five times a number and twice a second ...
- Algebra - The sum of 2 numbers is 19 Seven times the first number is five more ...
- calculus - the second number is the reciprocal of the fist and the sm is a ...

More Related Questions