5 ways can be written on the first digit.
5 ways can be written on the second digit.
5 ways can be written on the third digit.
5 ways can be written on the fourth digit.
5 ways can be written on the fifth digit.
5 ways x 5 ways x 5 ways x 5 ways x 5 ways or 5^5 ways
Therefore, there are 3125 numbers.
- D. E.