Complete the following function with a control structure. To perform the following, based on the variable a passed to th
Posted: Sun May 15, 2022 11:31 pm
Complete the following function with a control structure. To perform the following, based on the variable a passed to the function. • If a<0, return the square-root of a: V-a • If a =0, return 0 • If a > 0, return the square of a: a? a > Note: The rest of the C++ program and the main function are embedded already, you just need to complete the function definition. cmath header is already included.