Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(x != 0)
- {
- s = x / Math.abs(x);
- }
- else
- {
- s = 0;
- }
- System.out.println(s);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement