Saturday
April 19, 2014

Homework Help: Computer science

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

First Name:
School Subject:
Answer:

Related Questions

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 ...
C programming - Question: Write a program that reads integers from the keyboard ...
Algebra I - The sum of three numbers is 147. The second number is 4 more than ...
MATH - The triangular numbers are the numbers 1, 3, 6, 10, 15, . . .; the square...
Math(Urgent) - Compute the maximum product for two positive numbers x and y with...
math - The triangular numbers are the numbers 1, 3, 6, 10, 15, . . .; the square...
Math(Please, please help) - Compute the maximum product for two positive numbers...
Math - I really really need help on this one. I have no clue on how to do it; ...
Math - Compute the maximum product for two positive numbers x and y with the ...

Search
Members