Write a function named update that takes an integer x by reference and an integer delta by value.The function must update x by adding delta to it.
x
delta
In main(), read the input values, call the function, and print the updated value of x.
main()
Important rules:
Example:
Input:
10 4
Output:
14
Constraints:
Test Cases
Test Results
Input
Expected Output