Computer Science, asked by imubasshira, 5 months ago

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? I need explanation

Answers

Answered by priyankaacare
0

Answer:

Hold on, our servers are swamped. Wait for your answer to fully load.

Explanation:

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? I need explanation

HFUFHFHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH[][][][][][][]][][][][][]][][]][[][]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]][[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]][[[[[[[[[[[]]]]]]]]]]]]]]]]]

Similar questions