Ask a New Question

Asked by Sing

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.
18 years ago

Answers

Related Questions

are all numbers "real numbers"? which numbers are prime numbers 37,39,41,43 answer 37,41,43 John spent 1/3 of his study time doin... Rational Numbers are numbers that can be written as a Ratio of integers. When you convert these rat... Which of the following numbers is largest? a 375 024.2 b 375 424.15 c 375 424.2 d 37 542.42 Which of these numbers is the smallest number? a 74 321 b 743 210 c 7 432 102... Which of these numbers has the lowest value? a 985.623 b 985.632 c 958.632 d 958.623 e 958... Which of these numbers is not rational? (1 point) Responses start root 3 end root Image with a... whole numbers, rational numbers, natural numbers, and integers PUT THESE IN ORDER Prime numbers are whole numbers greater than 1 that have only to factors, 1 and the number itself.... rational numbers: numbers that can be represented by a/b, where a and b are intergers and b is not _...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use