Showing:
Handle Score
@Ibrahim Nash 6420
@mb1973 5578
@Quandray 5231
@akhayrutdinov 5111
@saiujwal13083 4510
@sanjay05 3762
@kirtidee18 3673
@marius_valentin_dragoi 3522
@sushant_a 3459
@verma_ji 3412
C++ Functions (Sum of numbers) | Set 1
School Accuracy: 63.77% Submissions: 12542 Points: 0

Given three numbers A, B, C you have to write a function named calcSum() which takes these 3 numbers as arguments and returns their sum.

Input:
The input line contains T, which denotes the number of testcases. Then T test cases follow. Each test case consists of a single line which contains three space separated integers A, B, and C.

Output:
Corresponding to each testcase, output sum of
A, B and C in a new line.

Since this is a functional problem you don't have to worry about input, you just have to complete the function calcSum().

Constraints:
1 <= T <= 105
1 <= A <= 102
1 <= B <= 102
1 <= C <= 102

Example:
Input:
3
1 2 3
5 6 7
2 5 3

Output:
6
18
10

Explanation:
Testcase 1:
Sum of the given 1,2 and 3 is 6.