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
0
Answer:
I am don't known please ok
Answered by
2
instead of return we can use void
Hope it helps u❤
Similar questions