A certain city contains 100 buildings. They are numbered from 1 to 100. How many 9's are used in all these numbers?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
From 1 to 89 (both numbers included) there are nine 9s.
From 90 to 98 (both numbers included) there are 9 nines.
And 99 has 2 nines. 2 + 9 + 9 = 20