As per given by the question,
There are given that 9- digit codes.
So,
Here, take 0 to 8.
So, total number is,
[tex]9^9[/tex]Now,
From the question, there are clearly mention that second digit cannot be 4.
If second digit cannot be 4, then this is not a 9 digit number.
So,
The number is,
[tex]9^8[/tex]Then,
The total number is,
[tex]\begin{gathered} 9^9-9^8=9^8(9-1) \\ =8\times9^8 \end{gathered}[/tex]Hence, the total number is,
[tex]8\times9^8[/tex]