Computer Science, asked by samtipton3, 10 months 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;
}
}

Answers

Answered by Anonymous
3

Answer:

delete this to pldssssssssss

Explanation:

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;

}

}

Attachments:
Answered by oOMimosaoO
0

public static int mystery (int x) {

if (x == 5){

return x;

} else {

return mystery(x--) * 5;

}

}

Similar questions