Check Positive And Negative Number

in Hindi - Check Positive And Negative Number



not yet

Source Code :

RUNimport java.util.Scanner;

public class Number
{
public static void main(String args[]){ 

int num;
System.out.println("Enter a number: ");
Scanner enter = new Scanner(System.in);
num = enter.nextInt();

if (num==0)
{
System.out.println("You entered zero .");
}
else if (num>=0)
{
System.out.println("You entered positive number .");
}
else{
System.out.println("you entered negative number .");
}

}
}