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

Why  might  things far away  and  long  ago  be   important   to  us now.
what is a rational number between 1/8 and 1/4?
what is a rational number between 1/8 and 1/4?
King Louis XVIA.He admired the revolution's principles.B.He was suspicious of the leaders of the revolution.C.He felt it was a much better revolution than the A
Choose the equation below that represents the line passing through the point (2, -4) with a slope of 1/2. A) y = 1/2 x + 5 B) y = 1/2 x - 3 C) y = 1/2 x - 5 D)
what can turn igneous rock into sediment?
Choose the equation below that represents the line passing through the point (2, -4) with a slope of 1/2. A) y = 1/2 x + 5 B) y = 1/2 x - 3 C) y = 1/2 x - 5 D)
write the following ratio in simplest form : 32 min : 36 min A. 8 : 9 B. 8 : 36 C. 32 : 9 D. 128 : 144
what can turn igneous rock into sediment?
what is a rational number between 1/8 and 1/4?