Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: fattykay92 on May 5, 2020



Title: Consider the following recursive method. public static int m(int value) {if (value >= 0)return 5 * ...
Post by: fattykay92 on May 5, 2020
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


Title: Consider the following recursive method. public static int m(int value) {if (value >= 0)return 5 * ...
Post by: meigsfla on May 5, 2020
Content hidden