Positive or Negative Number in JAVA


Positive or Negative Number in JAVA we use else if control statement it also known as Ladder if statement .

if number equals zero it is zero . if number grater than zero it is positive, if number less than zero it is Negative

 

Output of Positive or Negative number in Java

Enter any Value : 10

10  is Positive

(Visited 50 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image