English, asked by karishma22, 1 year ago

write a program to find whether entered no's is positive or negative

Answers

Answered by miya9
2
class number
{
public static void main(int n)
{
if (n>0)
System.out.println(" the given number is positive");
else
if(n<0)
System.out.println("the given number is negative");
else
System.out.println("the number is zero");
}
}

this program is in java language.
hope this helps.
plz mark it as brainliest.
i need it.
Similar questions