public class Remainder {
public static void main(String[] args) {
int a;
Scanner sc = new Scanner(System.in);
System.out.println("请输入一个数:");
a=sc.nextInt();
while (a != 0){
int b = a % 10;
System.out.println(b);
a = a/10;
}
}
}