Computer Science, asked by shubhamgupta9392, 8 months ago

int g (int x, int y) {
switch(x - y) {
case 0:
return x;
case 4:
y = y + 1;
break;
case 7:
x = x - 1;
case 9:
return x*y;
case 3:
y = x + 9;
default:
return y - x;
}
return y;
}
what does g(9,5) evaluate to?

Answers

Answered by gyadav30122000
0

Explanation:

int g (int x, int y) {

switch(x - y) {

case 0:

return x;

case 4:

y = y + 1;

break;

case 7:

x = x - 1;

case 9:

return x*y;

case 3:

y = x + 9;

default:

return y - x;

}

return y;

}

what does g(9,5) evaluate to

Thank you❤

Similar questions