java

Java program to check if the entered number is Positive or Negative or Zero

In this post, we are going to see how to find if the entered number is Positive or Negative, or Zero by writing a simple Java Program. The logic behind finding the entered number is Positive or Negative is so simple, let me just explain it.

If the number is greater than zero it is a Positive number else it is a Negative number, that’s it. So let us see how to achieve the same by writing a Java Program.

Sample output of the above program:

Positive number:

Negative number:

I hope the post is really helpful for you. Thanks for coming by.

Related Posts

Leave a Reply