anyone knows how they would start this off?

I need a which will take a decimal positive integer x then the program prints the number of digits required to represent the decimal integer x in bases 2, 4, 8, and 16.

For example: If the input is 18, then the output should be:

Given decimal number: 18

Number of digits required in base 2: 5

Number of digits required in base 4: 3

Number of digits required in base 8: 2

Number of digits required in base 16: 2

any help will be appreciated