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

Which of the following makes a true statement? The 1960 census revealed that the U.S. population had just passed the 200 million mark and was the first to ask q
neither end of Earth’s axis is tilted toward or away from the sun.
The sensory division of the body A. includes sensory neurons that receive impulses from the central nervous system. B. transmits impulses to the central n
A stable pond ecosystem would not contain
wath should I answer or wath kind of variable has dose same materials
The interest that Julia earns on her investment is given by the equation I = 48t where t is the time in years that her money is invested. She makes a table to d
when analyzing a story, which of the following is the best characteristics to examine?
Which of these is most likely to be attracted to a magnet? a. a book b. Electromagnet c. Piece of glass d. A copper wire
What should you do if you don't know your family's medical history? Look through their personal files to learn about them Ask them politely at a family gatherin
What is the most important skill to practice when a friend asks you to keep a secret?