how to write a program to find the number of address lines in an ‘n’ K memory using c

how to write a program to find the number of address lines in an ‘n’ K memory. Assume that n is always to the power of 2.

Input and Output Format:
Input consists of an integer that corresponds to ‘n’.
Output consists of an integer that corresponds to the number of address lines.

Assume that n is always a power of 2.

Sample Input:
2

Sample Output:
11


Source: c#

Leave a Reply