A + B Problem VIII
Description
我們再一次見到了 A + B 的問題,這是最後的 A + B 問題了!Input本題有多組測試數據,對於每組數據輸入兩個整數A和B(保證輸入數據在32位有符號整型範圍內),輸入處理到文件結束。
Output
對於每組數據輸出 A + B 的值並換行。
Sample Input
1 1
2 2
Sample Output
2
4
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
long a, b, count = 0;
while(scanf("%ld%ld", &a, &b) == 2)
{
printf("%ld\n", a + b);
}
return 0;
}