import java.util.Scanner;//导入包中的类
class Test1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入第一个数");
int x = sc.nextInt();
System.out.println("请输入第二个个数");
int y = sc.nextInt();
int sum =x + y;
System.out.println("两个数的和" + sum);
}
}
|