WAP in Java to input a number and deduce if the
entered number is positive or negative.
Anonymous:
hlo
Answers
Answered by
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.
Answered by
5
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