import java.util.Scanner;
class Demo6 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入第一个整数:");
int x =sc.nextInt();
System.out.println(x);
Scanner sc = new Scanner(System.in);
System.out.println("请输入第二个整数:");
int y =sc.nextInt();
System.out.println(y);
|
|