Computer Science, asked by rajeev5000, 8 months ago

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 divyanshtiwarivk
0

Answer:

2@+(55+)536+5++5+42+1323+42

Answered by pavithranatarajan855
2

Answer:

3

Explanation:

In g(2,3)

x=2 and n=3

Similar questions