Question: java inp 1 = int ( input ( ) ) #taking input 3 integers inp 2 = int ( input ( ) ) inp 3

java inp1=int(input()) #taking input 3 integers
inp2=int(input())
inp3=int(input())
if (inp1>= inp2) and (inp1>= inp3): #if first input is greater than both the other inputs
largest = inp1 #then largest is first input
elif (inp2>= inp1) and (inp2>= inp3):#if first second is greater than both the other inputs
largest = inp2 #then largest is second input
else:
largest = inp3 #else largest is third input
print(largest)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!