logic is- to get an input for T test cases, and then take two integers as input to add them and this will repeat T times as per the test cases input, also show the result one by one in new lines.
#include <bits/stdc++.h>
using namespace std;
int main() {
int T;
cin>>T;
while(T–){
int a,b;
cin>>a>>b;
int c=a+b;
cout<<c;
}
return 0;
}