//此题是输入多组数据
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (scanner.hasNext()) {
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = a + b;
System.out.println(c);
}
}
}
原文地址:https://www.cnblogs.com/xuesujun/p/11173620.html
时间: 2024-10-01 04:55:35