Output :Code:`package ZhyperMUFile;`

import java.util.*;

public class javaprogram1{

public static void main(String []args){

Scanner scn=new Scanner(System.in);

int nums, store, nums1,counter = 0 ;

System.out.print("Enter a number: ");

nums=scn.nextInt();

store = nums;

while (store > 0){

store = store/10;

counter = counter + 1;

}

counter = counter - 1;

while (counter >= 0){

nums1 = nums% (int) Math.pow(10, counter);

nums = nums/(int) Math.pow(10,counter);

System.out.print (nums + "\t");

nums = nums1;

counter = counter - 1;

}

}

}

http://i.imgur.com/W1GRWbz.png

Inputting positive integers is fine, when I try to to input negative integers it doesn't show the answer.

Guide me please?