The following recursive method has been created. This method accepts two integer parameters called a and b respectively. Assume that the name of the method is m and the code in the recursive method...


The following recursive method has been created. This method accepts two integer parameters called a and b respectively.


Assume that thename of the method is mand the code in the recursive method is:


      if ( a > b )
         return;
      if(a % 10 == 3)
       System.out.print(a+ " ");
    m(a+1, b);<---- recursive="">

   }


what would be the output with the following call m(1,50) where a is 1 and b is 50



Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here