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.

**User Task:**

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 <= 10^{2}

1 <= B <= 10^{2}

1 <= C <= 10^{2}

**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.

Author: harsh.agarwal0

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.

thanuvinu94 | 425 |

the_coder95 | 380 |

RishabhTanwar1 | 280 |

shubham3174 | 208 |

RitikRosan | 202 |

the_coder95 | 1226 |

RishabhTanwar1 | 1000 |

thanuvinu94 | 634 |

tathagat289 | 628 |

themanhasnoname | 620 |

blackshadows | 5331 |

Ibrahim Nash | 5219 |

akhayrutdinov | 5111 |

mb1973 | 4885 |

Quandray | 4547 |

Login to report an issue on this page.