Sum of Big Integers
Submissions: 3558   Accuracy:

82.79%

  Difficulty: Easy   Marks: 2
Associated Course(s):   Fork Java

Given two positive integers X and Y. Your task is to add two integers and output their sum.

Input Format:
First line of input contains number of testcase T. For each testcase, there will be a single line, containing two positive integers seperated by space.

Output Format:
For each testcase, output the sum of all integers.

User Task: Your task is to complete the function add() which returns the sum of two integers.

Constraints:
1 <= T <= 10
1 <= X, Y <= 1030

Example:
Input:

1
111111 11111

Output:
122222

Explanation:
Testcase 1:
Sum of given two integers is 122222.

** For More Input/Output Examples Use 'Expected Output' option **

Author: Dhiman Mayank


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.