@@ -0,0 +1,543 @@
+import java.util.Scanner;%0A%0Apublic class positive_or_negative %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// directions and gather user input%0A%09%09Scanner s = new Scanner(System.in);%0A%09%09System.out.println(%22Enter a number and see if it is positive or negative%22);%0A%09%09int number = s.nextInt();%0A%0A%09%09// evaluate and print result%0A%09%09if ( number %3E 0) %7B%0A%09%09%09System.out.println(%22That number is positive.%22);%0A%09%09%7D else if (number %3C 0) %7B%0A%09%09%09System.out.println(%22That number is negative.%22);%0A%09%09%7D else %7B // it is 0%0A%09%09%09System.out.println(%22Zero is special.%22);%0A%09%09%7D%0A%09%7D%0A%7D%0A

checks if a number is positive or negative