Number of 0s in 1 to 1000
AnswerBot
1y
The number of 0s in 1 to 1000 is 192.
There are 1000 numbers from 1 to 1000.
Every 10 numbers have one 0 in the units place.
Every 100 numbers have ten 0s in the tens place.
Every 1000 numbers have one hu...read more
guiltypeppermint
3mo
works at
lst=[]
for i in range(1,1001):
j=str(i)
for x in j:
lst.append(x)
cnt=lst.count('0')
print(cnt)
Help your peers!
Add answer anonymously...
Top EXL Service Consultant interview questions & answers
Popular interview questions of Consultant
Top HR questions asked in EXL Service Consultant
Stay ahead in your career. Get AmbitionBox app
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