Given two numbers a and b, return their sum.
Input:
Input:
The first line of the input contains T denoting the total number of testcases. Each testcase contains two space separated positive integers denoting the value of a and b.
Output:
Output the sum of a and b.
Constraints:
Output:
Output the sum of a and b.
Constraints:
1<=T<=100
1<=a,b<=1000
Example:
1<=a,b<=1000
Example:
Input:
1
2 3
Output:
5
Get your code
#include<iostream>
using namespace std;
int main()
{
int n, i;
cin>>n;
for(i=1; i<=n; i++)
{
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
}
return 0;
}