Consider the following code:
int g (int x, int n) {
for (int i = 0; i < n; i++) {
if (i % 2 == 0) {
x *= i + 1;
continue;
}
x--;
if (x == 0) {
break;
}
}
return x;
}
What does g(2, 3) evaluate to?
Answers
Answered by
0
Answer:
2@+(55+)536+5++5+42+1323+42
Answered by
2
Answer:
3
Explanation:
In g(2,3)
x=2 and n=3
Similar questions
Math,
4 months ago
English,
4 months ago
Physics,
9 months ago
English,
9 months ago
Political Science,
1 year ago