How many bits are required to represent a positive integer base 10 consisting of 25 digits without any leading zeroes?
Answers
Answered by
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
Environmental Sciences,
5 months ago
Political Science,
10 months ago
Business Studies,
10 months ago
Physics,
1 year ago
Hindi,
1 year ago