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
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
0
public static int mystery (int x) {
if (x == 5){
return x;
} else {
return mystery(x--) * 5;
}
}
Similar questions