Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSA Question of the Day March 19, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    Given the following function:

    public void mystery(int a) 
    {
        if (a % 10 < 5) 
        {
            System.out.println(a);
        }
        else 
        {
            mystery(a / 10);
        }
    }
    Java

    What will the output be if mystery(893498) is called?