What is the output of the following program segment? Assume…

What is the output of the following program segment? Assume that all variables are declared correctly. Manually walk through the code to determine what the output will be. Show the execution of the loops and any calculations for output to get partial credit.       int count = 1;            while (++count

What is the output of the following program segment? Manuall…

What is the output of the following program segment? Manually walk through the code to determine the output. Show the value of the loop index, calculation and the output for partial credit. If you only provide the output and it is incorrect, no partial credit will be given because I cannot see where you made a calculation error.       int num = 1;    int i;        for (i = 0; i < =2; i++)    {        num = num* (5 - i);        cout