Computer Science, asked by poojanagare2615, 8 months ago

Unsolved Java Programs:Write a program to input three numbers(positive or negative).if they are unequalthen 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, 12Sample Output: The greatest number is 56Entered numbers are mixed numbers.​

Answers

Answered by Anonymous
0

Answer:

Logic to check positive, negative or zero

  1. Input a number from user in some variable say num .
  2. Check if(num < 0) , then number is negative.
  3. Check if(num > 0) , then number is positive.
  4. Check if(num == 0) , then number is zero.

Similar questions