Positive or negative number



Problem to find the Positive or negative in given number.



Example-1:


Input    : n = 5
Output   : Positive    


Example-2:


Input    : n = -3
Output   : Negative   


Example-3:


Input    : n = 0
Output   : Zero   







Solution




public class Main
{
    public static void main(String [] args)
    {
        int n = 0;

        if(n>0)
        {
            System.out.print("Positive");
        }

        else if( n==0 )
        {
            System.out.print("Zero");
        }

        else
        {
            System.out.print("Negative");
        }
    }
}
n = 5

if(n>0):

    print("Positive")

elif(n==0):

    print("Zero")

else:

    print("Negative")



Output



Positive