Computer Science, asked by anvitanu, 9 months ago

Please solve this Java Program:

Write a program to input 3 numbers(positive or negative).If they are unequal then display the greatest number otherwise, display they are equal .The program also displays whether the numbers entered by the user are 'All positive' , 'All negative' or 'Mixed numbers'.

Sample Input: 56,-15,12
Sample Output: The greatest number is 56
Entered numbers are mixed numbers.



Please send correct solution​

Answers

Answered by sarthak8907
3

Answer:

class number

{

public static void main(int a,int b, int c)

{

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

System.out.println("no are equal");

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

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

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

System.out.println(b+"is the greatest no.");

else

System.out.println(c+"is the greatest no.");

}

}

Similar questions