Rewrite this iterative method to use recursion instead. You…
Rewrite this iterative method to use recursion instead. You cannot add any variables outside of the method. You cannot use a loop inside of your method. public static int mystery(int max, int min) { int result = 0; for(int i=max; i >= min;i–) { result += i; } return result; }
Read Details