Print whether the number is +ve or -ve

01/01/2002 08:22

 

public class postivenegative
{
public static void main(String args[])
{
int a=-90;
if(a>0)
System.out.println("the number is +ve");
if(a<0)
System.out.println("the number is -ve");
else
System.out.println("the number is 0");
}
}