what does the following code fragment print int n=50 code example
Example: what does the following code fragment print int n=50
Stack stack = new Stack(); while (N > 0){stack.push(N % 2);N = N / 2;}for (int d : stack) StdOut.print(d);StdOut.print1n();