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

Select the answer with parallel structure. A. My family went on vacation to ​relax, fish and do some camping. B. My family went on vacation to​ relax, fish, and
acute, obtuse or right triangle?
Determine if the sequence is arithmetic (yes or no). If it is, find the common difference. 1. 35, 32, 29, 26... 2. -30, -40, -50, -60...
how do i round this to the nearest tenth?
How can we Use probably and definitely? What is the conditions?
is basalt on the same page in a dictionary as base-batch or before or after?
Which ordered pairs are on the line ​ 3x−4y=9 ​? Select each correct answer.
What is x in the equation 5y+x=45
How much tax would you pay on a new tv that is $899 at best buy, if the tax rate is 6.5
What was special about the group of men that met at the Constitutional Convention?