Java Program to Check Whether a Number is Positive or Negative

In this program, you'll learn to check if a number entered by an user is Positive or Negative. This will be done using if...else statement in Java.

Check Whether a Number is Even or Odd

When you run the program, the output will be:

-25 is negative

Post a Comment

Thank you for vising

Previous Post Next Post