C++ Pointers ( Incrementing a variable) | Set 1
Submissions: 4248   Accuracy:

63.66%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

Given a pointer to a variable, the task is to complete the function updateVar() which will increment the value of the variable by 10. The function does not returns anything.

Input:
The first line of input contains a single integer T, which denotes the number of testcases. Then T test cases follows. Each test case consists of a single line which contains a single integer A.

Output:
Corresponding to each test case, print in a new line the updated value of A.

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

Constraints:
1 <= T <= 100
1 <= A <= 103

Example:
Input:
4
2
5
9
7

Output:
12
15
19
17

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

Contributor: Harsh Agrawal
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.



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


to report an issue on this page.