Answer:126 ways
Explanation:
Given that the first digit could be any number from
though
.
So,there are
ways to choose the first digit.
Given that the second digit was either
or
.
So,there are
ways to choose the second digit.
Given that the third digit could be any number except
.
So,there are
ways to choose the third digit.
The number of different codes possible is the product of number of ways of choosing first digit,number of ways of choosing second digit and number of ways of choosing third digit.
Total ways are
ways