Share your repls and programming experiences

← Back to all posts
6.3. While: Power of two
pole55 (309)

"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ⁿ."

Example input

Example output
5 32