Suppose that alpha is an int variable. Consider the following C++ code:
cin >> alpha;
switch (alpha % 6)
{
case 0:
alpha--;
break;
case 1: case 2:
alpha = alpha * 2;
break;
case 3:
break;
case 4:
alpha = alpha - 5;
case 5:
alpha++;
break;
default:
alpha = alpha / 3;
}
a. What is the output if the input is 8?
b. What is the output if the input is 3?
c. What is the output if the input is 17?
d. What is the output if the input is 24?
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.