rglen6618 rglen6618
  • 20-02-2018
  • Computers and Technology
contestada

Write a local function named maxvalue that returns the maximum of two inputs numa and numb.

Respuesta :

pbzepplin
pbzepplin pbzepplin
  • 02-03-2018
Here is a function in Delphi:

function maxvalue(numa, numb: integer): integer;
var
    biggest: integer;
begin
    if numa >= numb then
        biggest := numa;
    else
        biggest := numb;
    end;

    Return biggest; 
end;
Answer Link

Otras preguntas

What was the number one attraction bringing settlers to California, Colorado, or South Dakota during the late 1800s?
Javier power walks 4 1/4 miles in 2 hours how many miles does he walk in one hour? ANSWER HAS TO BE IMPROPER AND IN SIMPLEST FORM
Please help, this is my first time! Here is the question: Maria earned a total of $504 the last two days. She worked 8 hours the first day, 4 hours the second d
How did the formation of the United States contribute to the Enlightenment in Europe?
Which statement best explains acceleration? A. It is the total distance covered over a period of time. B. It is a change in velocity over a period of time.
you travel 600 miles in 11 hours. How many miles per hour did you travel?
(2x - 1)(3x2 - 4x + 5) multiply the polynomial ​
como determinar el valor numerico de la expresion
PLZZZZZZ HELP MEEEEE? Simplify l -10l-l8l+4 A.7 B.4 C.5 D.6
Samuel bought 22 chicken wings for $33.00. What's the unit cost of one wing? On the double number line below, fill in the given values, then use multiplication