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

why voltmeter and resistence are parallel in ohm's law.
A cereal  manfunction puts a 50 cent coupon in every eighth box and a fee coupon in every hundredth box.What is the first time you would both coupons in the sam
A cereal  manfunction puts a 50 cent coupon in every eighth box and a fee coupon in every hundredth box.What is the first time you would both coupons in the sam
how acids cause burns. Please explain
“Robin Hood and the Scotchman” Now bold Robin Hood to the north would go, With valour and mickle might; With sword by his side, which oft had been try’d, To fig
Those were the years that I remember best.  The bolded words are what kind clauses?
In rhombus ABCD, AB = 13 and AC = 25. Find the area of the rhombus to the nearest tenth.
what is ultrafication?
What is the range of the function: {(1, 3); (3, 5); (5, 7); (7, 9)}?                                    A. {1, 3, 5, 7}
HOW MANY ELECTRON MAKES 10 COULOMB OF CHARGE?