6.3. While: Power of two
"For a given integer X, find the greatest integer n where 2ⁿ is less than or equal to X. Print the exponent value and the result of the expression 2ⁿ."
Share your repls and programming experiences