输入一个整数a, 求个位数输入一个整数,在int范围内输出一个整数import java.util.Scanner;public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int a = scanner.nextInt(); int b = a % 10; System.out.println(b); }}