A+B for Input-Output Practice (II)

Problem Description

Your task is to Calculate a + b.

Input

Your task is to Calculate a + b.

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.

Example Input

2
1 5
10 20

Example Output

6

30

#include int main() { int a,b,n,i; scanf("%d",&n); for(i=1;i<=n;i++) { scanf("%d %d",&a,&b); printf("%d\n",a+b); } return 0; }

你可能感兴趣的:(山理,大一,OJ)