In the following program, number the marked statements to show the order in which they will execute (the logical order of execution).  Also what is the output if the input is 10? (6, 7, 8) #include...


In the following program, number the marked statements to show the order in which they will execute (the logical order of execution).  Also what is the output if the input is 10? (6, 7, 8)


#include

using namespace std;


int secret(int, int);


void func(int x, int& y);


int main()


{


        int num1, num2;


_____   num1 = 6;


_____   cout <>


 _____   cin >> num2;


_____   cout <>


_____   cout <><>


_____   num2 = num2 - num1;


 _____   cout <><><><>


_____   func(num2, num1);


_____   cout <><><>


_____   return 0;


}


   int secret(int a, int b)


{


        int d;


_____   d = a + b;


_____   b = a * d;


_____   return b;


}


   void func (int x, int& y)


{


         int val1, val2;


_____   val1 = x + y;


_____   val2 = x * y;


_____   y = val1 + val2;


_____   cout <><><><>


}




May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here