Computer Science, asked by Anonymous, 4 months ago

WAP in Java to input a number and deduce if the

entered number is positive or negative.​


Anonymous: hlo
Anonymous: di vo kar do please
Anonymous: aapka bhai
Anonymous: aur kon
Anonymous: ohh
Anonymous: np

Answers

Answered by Anonymous
1

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. the else given number is neither positive or negative.


Anonymous: i m asking for the program not the explanation
Anonymous: oh
Anonymous: sry
Answered by Anonymous
5

Answer:

\pink{\bold{\underbrace{\overbrace{❥Answer᎓}}}}

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. the else given number is neither positive or negative.

Similar questions