Computer Science, asked by 4504anmolsharma, 4 months ago

wap input any 3 values find greatest​

Answers

Answered by RuwaisnZaid
1

Explanation:

def high(x,y,z):

max = 0

if x>y and x>z:

max = x

elif y>x and y>z:

max = y

else:

max = z

return max

x = int(input ("Enters a no"))

y = int(input ("Enters a no"))

z = int(input ("Enters a no"))

max1 = high(x,y,z)

print("max1")

mark me as brainly */*

Answered by manuprajapati519
0

Answer:

import java.util.Scanner;

public class greatest

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

int a, b, c;

System.out.println("Input three numbers");

a=in.nextInt();

b=in.nextInt();

c=in.nextInt();

if(a>b&&a>c)

{

System.out.println("The first number is greatest :"+a);

}

else if(b>c&&b>a)

{

System.out.println("The second number is greater :"+b);

}

else

{

System.out.println("The third number is greater :"+c);

}

}

}

Please mark this poor as Brainliest answer, PLEASE

Hope this helped

RUN THIS AND YOU WILL GET THE GREATEST IN THE THREE NUMBERS

Similar questions