BETA
School Problem's Submission isn't counted in score!

Submissions: 1075 Accuracy:

51.53%

C++ Pointers ( Incrementing a variable) | Set 1 (Function Problem)
       

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.

Note:The Input/Ouput format and Example given below are used for system's internal purpose, and should be used by a user for Expected Output only. As it is a function problem, hence a user should not read any input from stdin/console. The task is to complete only the function specified, and not to write the full code.
 

Input: First line of input contains a single integer T, which denotes the number of test cases. 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.

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

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


					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

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