Chapter 15: Problem 7
What does the following code do? 1 public int mystery( int a, int b ) 2 { 3 if ( b == 1 ) 4 return a; 5 else 6 return a + mystery( a, b - 1 ); 7 } // end method mystery
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.