Add Two Numbers | Problem Code: FLOW001
using namespace std;
int main() {
int T;
cin>>T;
int a[T];
for(int i=0;i<T;i++) {
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
}
}
programming tutorials,programming code,latest programming,programming theory
Shivam is the youngest programmer in the world, he is just 12 years old. Shivam is learning programming and today he is writing his first program.
The program is very simple, given two integers A and B, write a program to add these two numbers.
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.
For each test case, add A and B and display them in a new line.
Input 3 1 2 100 200 10 40 Output 3 300 50
No comments:
Post a Comment