第1个回答 2014-06-18
import java.util.Scanner;
public class test2 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
System.out.print("请输入一个整数:");
int i = s.nextInt();
System.out.println("个位是:" + i % 10);
System.out.println("百位是:" + i % 100 / 10);
}
}