解题思路:
注意事项:他是多组测试数据
参考代码:
import java.util.Scanner;
public class Prog1000 {
public static void main(String[] args) throws Exception {
Scanner scan = new Scanner(System.in);
while (scan.hasNext()) {
int a = scan.nextInt();
int b = scan.nextInt();
System.out.println(a + b);
}
scan.close();
}
}
0.0分
0 人评分