import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
int n = 2350;
System.out.printf("Original Number: %d\n", n);
int shift_right_count = 0;
do {
n >>= 1;
shift_right_count++;
} while (n != 0);
shift_right_count--;
System.out.printf("Result: %s\r\n", shift_right_count);
}
}
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer