Competitive Programming | Python
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 task is very simple: given two integers A and B, write a program to add these two numbers and output it.
INPUT FORMAT
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 FORMAT
For each test case, add A and B and display the sum in a new line.
PYTHON:
T=int(input())for i in range(0,T): A, B = input().split(" ") A=int(A) B=int(B) print(A+B)
OUTPUT
INPUT3
1 2
100 200
10 40OUTPUT3
300
50
Run here: