Question: Wile a C++ program that unction return Function type nt will call the following functionsn the order specified next) unction Description list int n1, int
Wile a C++ program that unction return Function type nt will call the following functionsn the order specified next) unction Description list int n1, int n2, int ns The main program sends the values of the avgt n1 and n2 and n3 variables to the the function returns the value of avg of the two numbers back to main through return statement The main program does not send any values through the parameters. the function will read the values from user then finds avg then send back the answer to nt avg2 None through the return statement Int n1, int n2, int n3The main program sends the values of variables n1 and n2 and n3to the the funcion calculates the avg and prints the answer The main program does not send the values of n1 and n2 and n3Mo the function Void lone function will ask the user to enter the values then calculates the avgand pints it The main program sends the values of the variables n1 and n2 and n3 to the function Void nt n1. int n2.int the function calculates the avg and sends it back to main program the parameter list as call by reference arameter Void nt sanswer The function reads the values of the ariables n1 and n2 and n3 then calculates the av and sends it back to main program hrough
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
