import java.util.Scanner;java
public class Test02
{class
public static void main(String[] args)
{
System.out.println("任意輸入一個四位數");
Scanner scan=new Scanner(System.in);
int a = scan.nextInt();
if(a >=1000 && a <=9999)
{
int b1=a%10; //個位
a = a/10;
int b2 =a%10; //十位
a= a/10;
int b3=a%10; //百位
a= a/10;
int b4=a%10; //千位
System.out.println("個位是"+b1);
System.out.println("十位是"+b2);
System.out.println("百位是"+b3);
System.out.println("千位是"+b4);
}
}import
}im