Computer Science, asked by anshikashukla13, 9 months ago

Write a program in java to print a number is positive or negative number ..​

Answers

Answered by subhamrout2019
1

Answer:

negative

Explanation:

Read a number from the user using the Scanner class's method. check whether the given number is greater, lesser or, equal to 0. If it is greater given number is positive if the lesser given number is negative.

Similar questions