In the following code, without adding new statements, correct any errors that would prevent the program from compiling or running.   (3, 11) #include using namespace; int main {     int num1, num2;...


In the following code, without adding new statements, correct any errors that would prevent the program from compiling or running.   (3, 11)


#include

using namespace;


int main


{


    int num1, num2;


    bool found = false;


    cout <>


    cin >> num1 >> num2;


    cout


    found = (num1 > num2);


    if (found        switch (num1 % num2);


        {


case 0:


            num2 = num1 / 2;


            break;


case 1:


             num1 = num2 / 2;


            break;


default:


            num1 = num1 / num2;


            num2 = num1 * num2;


};


    Else


    {


        num1 = num1 - num2;


        num2 = (num1 + num2) / 10;


    }


    cout <><><>


    return;


After correcting the code, answer the following questions. (If needed, insert prompt lines to inform the user for the input.)


a. What is the output if the input is 16 5?


b. What is the output if the input is 13 27?


May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here