Choose the hundreds digit 9 ways, 1,2,3,4,5,6,7,8,9
Choose the tens digit 10 ways, 0,1,2,3,4,5,6,7,8,9
Choose the units digit 1 way, 5.
Answer 9×10×1=90 ways
How many numbers are there between 100 and 1000 such that every digit is either 2 or 9?
How many numbers are there between 1 and 100 such that at least one of their digits is 5?