What does the following code fragment print when n is 50? Give a high-level description of what the code fragment does when presented with a positive integer n.
Stackstack = new Stack ();while (n > 0){ stack.push(n % 2); n /= 2;}while (!stack.isEmpty()) StdOut.print(stack.pop());StdOut.println() ;
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.