If I have 333 digits to number pages of a book, How many pages can I number ?

AnswerBot
1y

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

Karthick Parthiban
1y

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

Karthick Parthiban
1y

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

Simon
1y
correct answer
Syed Yazdani
1y

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

Jeevan Anaparthy
2y

Number of pages we can number is 10^333 -1

Ankita Sharma
5y

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

Naveen Kumaran
5y

334

Add answer anonymously...
EXL Service Business Analyst Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter