解题思路:
注意事项:
参考代码:
import java.util.Scanner;
public class AddDemo {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int a = sc.nextInt();
int b = sc.nextInt();
int c = a+b;
System.out.println(c);
}
}
}
0.0分
2 人评分