how many four-digit numbers that have only even digits can be formed?How many three-digit numbers that do not contain the digit $7$ but contain at least one time $8$ can be formed?
Could anyone help me with any hints?
First question: $4\cdot 5\cdot 5\cdot 5$. Second question: $8\cdot 9\cdot 9-7\cdot 8\cdot 8$, i.e. the number of three-digit numbers without $7$ minus the number of three-digit numbers without both $7,8$.