public class Test2 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("请输入一个三位数的随机整数");
int i = scanner.nextInt();
int ge=i%10;
int shi=i/10%10;
int bai=i/100;
System.out.println("百:"+bai+"十:"+shi+"个:"+ge);
}
}
02-08
622