hdoj A+B for Input-Output Practice (III)

Input

Input contains multiple test cases. Each test case contains a pair of integers a and b, one pair of integers per line. A test case containing 0 0 terminates the input and this test case is not to be processed.

Output

For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.

Sample Input

1 5
10 20
0 0


Sample Output

6
30

代码：
#include<stdio.h>
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)&&a||b)
{
printf("%d\n",a+b);
}
return 0;
}

注意：&&a||b的意思

[水题][hdoj_1094]A+B for Input-Output Practice (VI)

2012-07-31 01:20:16

[水题][hdoj_1091]A+B for Input-Output Practice (III)

2012-07-31 00:48:32

山东理工大学ACM平台题答案关于C语言 1012 A+B for Input-Output Practice (III)

2013-12-13 20:56:31

[水题][hdoj_1096]A+B for Input-Output Practice (VIII)

2012-07-31 01:42:21

「HD_ACM」A+B for Input-Output Practice (III)

2015-05-01 22:56:02

【杭电oj】1091 - A+B for Input-Output Practice (III)（注意0，0结束输出）

2016-01-13 20:28:04

oj1090: A+B for Input-Output Practice (III)

2017-02-16 15:52:27

HDU 1.1.3 A+B for Input-Output Practice (III)

2016-03-10 17:19:15

HDOJ 1091 A+B for Input-Output Practice (III)（水题）

2015-07-25 09:02:27

[水题][hdoj_1092]A+B for Input-Output Practice (IV)

2012-07-31 01:06:45