Computers and Technology

How do I put this as a if-else statement in java? if firstNumber > secondNumber and firstNumber > thirdNumber:
largest = firstNumber
elif secondNumber > firstNumber and secondNumber > thirdNumber:
largest = secondNumber
else:
largest = thirdNumber

if firstNumber < secondNumber and firstNumber < thirdNumber:
smallest = firstNumber
elif secondNumber < firstNumber and secondNumber < thirdNumber:
smallest = secondNumber
else:
smallest = secondNumber

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 20:00, jumpgirll
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
image
Computers and Technology, 22.06.2019 23:30, Molly05
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is 50e0bf08e5b671@ualwgypg91wa5wl. uzo9kbud3qjwddygd5.vng -
Answers: 1
image
Computers and Technology, 23.06.2019 19:00, nayo2006
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
image
Computers and Technology, 23.06.2019 23:00, minosmora01
How do you know if the website is secure if you make a purchase
Answers: 2
Do you know the correct answer?
How do I put this as a if-else statement in java? if firstNumber > secondNumber and firstNumber...

Questions in other subjects:

Konu
Mathematics, 19.05.2020 15:03