matt12272001 matt12272001
  • 07-03-2018
  • Computers and Technology
contestada

Write a Java program to find the greatest of three numbers

Respuesta :

camiliondez camiliondez
  • 14-10-2020

Answer:

Great question!

I would try something like this:

//Defines your three numbers

int Num1 = 5;

int Num2 = 10;

int Num3 =  50;

if (Num3 > Num2)

{

If(Num3 > Num1)

{

System.out.println("The Highest was:"  + Num3);

}

else

System.out.println("The other number is higher");

You can do else if I just don't want to.

Explanation:

Hope this helped!

Answer Link

Otras preguntas

Please help! Write the sum, and then write an equivalent expression by collecting like terms and removing parentheses whenever possible.
what is the three types of neurons?
if you got a 23/25 on a quiz, what is your grade? How do you determine that?
How to calculate inventory cost?
Read the two excerpts representing contrasting views of slavery. On this subject, I do not wish to think, or speak, or write with moderation. No! no! Tell a ma
Does the article provide a full account of the life of Meriwether Lewis? Write an assessment.
4. The town of Euclid started a voluntary recycling program. The first year it was utilized by 1500 residents.
The number of Votive candles varies directly as the price. What is the ratio of candles to dollars?​
Which feature does an iron metal have?
PLEASEE HELPP Which system of equations would be best solved using Substitution? 1. -2x + 5y = -1 2x + 5y = 11 2. 2x = 10 y=-3 3. 3x + 7y= 21 4x – 3y = -9 4. y=