Computer Science, asked by kumarpratyaksh450, 8 months ago

Input a number and tell if it is +ve or -ve or neutral​

Answers

Answered by amansarrafas24payxgs
0

Answer:

class PosNeg

{

public void main(int a)

{

if(a > 0)

{

System.out.println("Position");

}

else if(a < 0)

{

System.out.println("Negative");

}

else if(a == 0)

{

System.out.println("Neutral");

}

}

}

I hope you find is useful... If you have any query do comment and I will try to solve it...

Similar questions