
Explanation : Step 1: Take a number from the user by using the Scanner class object. Step 2: If the given number is < 0 then it is a negative number otherwise, it is a positive number. Java Code : //postive or negative import java.util.Scanner; pub...
Go with the flow
IIIT - N Software Geek. Startup Enthusiast. Build for the Future.
Markdown supported · ⌘↵ to post
No responses yet.