jrocklove708 jrocklove708
  • 04-02-2018
  • Computers and Technology
contestada

Write a little man program that accepts three values as input and produces the largest of the three as output.

Respuesta :

mathmate
mathmate mathmate
  • 04-02-2018
Required: program to return the largest of three numbers.

pseudocode

input parameters, int A,B,C;
int T; // temporary storage
if (A>B) T=A;
else T=B;
if (T>C) print(T);
else print(C);


Answer Link

Otras preguntas

Which of the following can be considered fossils? a. a 1 billion year-old rock. b. a 1 billion year-old piece of amber. c. a 1 billion year-old piece of amber w
If a slope of a line is 2/0 is it 0 or undefined?
Which of the following organisms can perform alcoholic fermentation? (1) yeast, (2) humans, (3) bacteria. a. 1 and 2 b. 1 and 3 c. 1 only d. 1, 2, and 3
Which of the following can be considered fossils? a. a 1 billion year-old rock. b. a 1 billion year-old piece of amber. c. a 1 billion year-old piece of amber w
Which of the following statements is true concerning LUCA? (1) LUCA was a cell. (2) All life on Earth evolved from LUCA. (3) LUCA probably existed probably arou
Does every point lie in a quadrant?
A farmer hauled in 120 bales of hay. Each of his cows ate 1 1/4 bales. How many cows the farmer feed?
If 8 men can chop down 28 trees in one day, how many trees can 20 men chop down in one day?
“The genetic code is universal.” Explain this statement.
Dominick lives 1 3/4 miles from his school.  If his mother drives him half the way, how far will Dominick have to walk to get to school?