logo

Crowdly

Browser

Add to Chrome

Consider the recursive method myPrint . What is printed for the call myPrint(8...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Consider the recursive method myPrint. What is printed for the call myPrint(821)?

public void myPrint(int n) 

{

   if (n < 10)

      System.out.print(n);

   else 

   {

      int m = n % 10;

      System.out.print(m);

      myPrint(n/10);

   }

}
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on elearning.unibs.it?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome