If I have 333 digits to number pages of a book, How many pages can I number ?
333 digits can number 166 pages of a book.
Each page number takes up 2 digits.
The first page is numbered 01.
The last page that can be numbered is 166.
The remaining 2 digits are used for the cover page ...read more
n=int(input("Enter digits : "))
str1=''
count=1
while count<=n:
if len(str(count))==1 and len(str1)
str1=str1+'0'+str(count)
elif len(str1)
str1=str1+str(count)
else:
break
count=count+1
print(len(s...read more
By using python..
str1=''
count=0
while count<=333:
count=count+1
if len(str1)<333:
str1=str1+str(count)
else:
break
print(len(str1))
print(count-1) # you need to minus 1 count since you are using <333 ,so...read more
The answer is 333only
Because each page contain 1digit
Like 0 to 9
The it's count should be 10
As the same the the answer will be 333itself only
Number of pages we can number is 10^333 -1
1 digit numbers from 1-9=9
2 digit numbers from 10-99=90
as of now:
total digits =(9*1)+(90*2)=9+180=189digits
Remaining DIgits=333-189=144
3 digit Numbers that can be used:
100-147 page number
i.e.
t...read more
334
Top EXL Service Business Analyst interview questions & answers
Popular interview questions of Business Analyst
Top HR questions asked in EXL Service Business Analyst
Reviews
Interviews
Salaries
Users/Month