Consider the following C++ code:
The function func2 has three parameters of type int, int, and double, say a, and c, respectively. Write the definition of func2 so that its action is as follows:
a. Prompt the user to input two integers and store the numbers in a and b, respectively.
b. If both of the numbers are nonzero:
c. If a is nonzero and b is zero, the value assigned to c is the square root of the absolute value of a.
d. If b is nonzero and a is zero, the value assigned to c is the square root of the absolute value of b.
e. Otherwise, the value assigned to c is 0.
The values of a, b, and c are passed back to the calling environment.
After completing the definition of the func2 and writing its function prototype, test run your program
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.