abass123m abass123m
  • 11-03-2021
  • Computers and Technology
contestada

Write a program to compute the maximum and minimum value of three numbers:

Respuesta :

ejbuhain ejbuhain
  • 11-03-2021

Answer:

in javascript:

function compute(a, b, c){

let array = [a, b, c];

array.forEach((e,k) => {

if(e >= a && e >= b && e >= c){

console.log("maximum: " + e);

}  

if( e <= a && e <= b && e <= c){

console.log("minimum: " + e);

}

}

}

Explanation:

Answer Link

Otras preguntas

Explain the natural disaster caused by water in nepal?​
In your opinion, why do you think Juneteenth isn't celebrated as a national holiday like the 4th of July is?
what should you do after the inclusion of a quote?
Two electric charges A and B were placed facing each other at a distance of separation "r". The common electrostatic force between them is 4N. What will the ma
Help me pleaseee!! Would appreciate ^^ **BRAINLIST, thanks and points*** Number 3
consider the adjacent figure. why arent the angles in the figure equal alternate angles? A. the two lines cut by the transversal are not parallel, B. The two li
2x2 – 2x + 5 = 0 Solve using quadratic formula complex soultions
2−(4−+)ℎ=1,=2I need help fast (this is a timed test)
BRAINLIEST TO CORRECT HURRY
What is the radioactive element used in nuclear war heads​