Answer:
With the restrictions that 0 or 8 cannot be the leading digit, the leading digit can be one of [1, 2, 3, 4, 5, 6, 7, 9] = 8 choices.
The other six digits can be one of [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] = 10 choices each.
Therefore, there are:
8*10*10*10*10*10*10 = 8*10^6 = 8,000,000 7-digit numbers under the given restrictions.
Explanation:
hope this helps