Computer Science, asked by vamshi1396, 10 months ago

How many bits are required to represent a positive integer base 10 consisting of 25 digits without any leading zeroes?

Answers

Answered by aspiibam
0

Explanation:

Given an integer n, output the no. of leading zeros in it’s binary form.

A leading zero is any 0 digit that comes before the first nonzero digit in a number’s binary form.

Examples:

Input : 16 Output :27 As Binary(16) = (00000000000000000000000000010000) Input :33 Output :26 As Binary(16)=(00000000000000000000000000100001

Similar questions