Computer Science, asked by samtipton21, 1 year ago

What is returned as a result of calling mystery(1)?

public static int mystery (int x) {
if (x == 5){
return x;
} else {
return mystery(x--) * 5;
}
}



StackOverFlowError
25
nothing
5

Answers

Answered by ROCKY1870
0

Answer:

I am don't known please ok

Answered by Anonymous
2

instead of return we can use void

Hope it helps u❤

Similar questions