A+B(3)
A+B(3)
http://www.nowcoder.com/questionTerminal/4274505ccb754de4bc4dfec9acd201d5
import java.util.Scanner; /** * 链接:https://ac.nowcoder.com/acm/contest/320/C * 来源:牛客网 * * 输入包括两个正整数a,b(1 <= a, b <= 10^9),输入数据有多组, 如果输入为0 0则结束输入 */ public class Main_03 { public static void main(String[] args) { Scanner s = new Scanner(System.in); for (; ; ) { int a = s.nextInt(); int b = s.nextInt(); if (a == 0 && b == 0) { break; }else { System.out.println(a + b); } } } }