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

Write 3.637 as a mixed number in simplest form.
what common physical feature do Plymouth and Boston share
Brady scoops pretzels from a bin into a bag at the store. The scale shows the weight of the pretzels to be 453. 6 grams. The pretzels cost $2.50 per 1/2 pound.
Slope is 1 and (-2,-1)is on the line
Rosie Need Help one more time In the picture, the skeleton is wearing a religious hat. Which of the following statements best describes the meaning of this imag
The greatest common factor of 42 and 72
Opportunity in general, did feudalism and manor relations promote movement from one social class to another?
Find the value of n 2k
where were the mayans discovered first?
What are gcf for 72 and 86?