@@ -0,0 +1,500 @@
+import java.util.Scanner;%0A%0Apublic class reverse_number %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// directions and gather input%0A%09%09Scanner s = new Scanner(System.in);%0A%09%09System.out.println(%22Enter a number to be reversed%22);%0A%09%09int number = s.nextInt();%0A%0A%09%09//reverse number%0A%09%09int reverse_number = 0;%0A%09%09while(number != 0) %7B%0A%09%09%09reverse_number = reverse_number * 10;%0A%09%09%09reverse_number = reverse_number + number%2510;%0A%09%09%09number = number/10;%0A%09%09%7D%0A%0A%09%09// print result%0A%09%09System.out.println(reverse_number);%0A%09%7D%0A%7D%0A

reverses a number