Solve problem "The power of two" online - Learn Python 3 - Snakify

The power of two


Statement

For a given integer N, find the greatest integer x where \( 2^x \) is less than or equal to N. Print the exponent value and the result of the expression \( 2^x \).

Don't use the operation **.

Advertising by Google, may be based on your interests

In all the problems input the data using input() and print the result using print().

Advertising by Google, may be based on your interests