Add Two Numbers CodeChef Solution

Add Two Numbers CodeChef Solution

Input

The first line contains an integer T, the total number of test cases. Then follow T lines, each line contains two integers A and B.

Output

For each test case, add A and B and display it in a new line.

Example

Input
3 
1 2
100 200
10 40

Output
3
300
50

Source Code:

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long int ll;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int a,b,n,m,t,i,j,p,k,x;
cin>>t;
while(t–){

cin>>n>>k;

cout<<n+k<<endl;
}
return 0;
}

Harsh

Hey Friends, Welcome to thetechbuddy. This blog is about technical or programming knowledge.

Leave a Reply