题目描述:
The first line integer means the number of input integer a and b. Your task is to Calculate a + b.
输入:
Your task is to Calculate a + b. The first line integer means the numbers of pairs of input integers.
输出:
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.
样式输入:
2
1 5
10 20
样式输出:
6
30
代码如下:
#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d",&a);
while(a!=0)
{
scanf("%d %d",&b,&c);
printf("%d\n",b+c);
--a;
}
return 0;
}