write a program to find whether entered no's is positive or negative
Answers
Answered by
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.
{
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
Math,
7 months ago
Social Sciences,
7 months ago
Math,
7 months ago
Math,
1 year ago
Psychology,
1 year ago
Biology,
1 year ago