Computer Science, asked by ishitasinghis071, 5 months ago

Write a program to enter a number check the number is negative or positive.

Answers

Answered by tumpaghoshjh
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