Write a program to enter a number check the number is negative or positive.
Answers
Answered by
4
Answer:
public class number
{
public void main (int n)
{
if(n>0)
System.out.println("positive number");
if(n<0)
System.out.println("negative number");
}
}
Explanation:
plss mark as brainliest
I did it by my own
Similar questions
Social Sciences,
2 months ago
Social Sciences,
5 months ago
Chemistry,
5 months ago
Accountancy,
11 months ago
English,
11 months ago
Science,
11 months ago