Top Posters
Since Sunday
z
4
n
4
t
4
k
3
x
3
r
3
m
3
j
3
c
3
l
3
e
3
s
2
New Topic  
fattykay92 fattykay92
wrote...
Posts: 467
4 years ago
Consider the following recursive method.

public static int m(int value) {
if (value >= 0)
return 5 * m(value - 2);
else
return 1;
}

What value is returned when invoking m(5)?

▸ 75

▸ 125

▸ 100

▸ 25

▸ 225
Textbook 
Introduction to Java Programming, Comprehensive Version

Introduction to Java Programming, Comprehensive Version


Edition: 10th
Author:
Read 45 times
1 Reply
Replies
Answer verified by a subject expert
meigsflameigsfla
wrote...
Posts: 387
4 years ago
Sign in or Sign up in seconds to unlock everything for free
More solutions for this book are available here

Related Topics

fattykay92 Author
wrote...

4 years ago
Good timing, thanks!
wrote...

Yesterday
this is exactly what I needed
wrote...

2 hours ago
Brilliant
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  548 People Browsing
Related Images
  
 445
  
 358
  
 1071
Your Opinion
Who will win the 2024 president election?
Votes: 119
Closes: November 4