Computer Science, asked by santosh4599, 10 months ago

write a program to find greatest of three numbers

Answers

Answered by reetarani874
1

Answer:

Hello

class greater

{public static void main (String args{[])

{

int a,b,c;

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

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

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

System.out.println(b+"is a greatest number");

else(c>=a&&c>=b);

System.out.println(c+"is a greatest number");

}

}

Similar questions