Answer:
Step-by-step explanation:
The numbers from 1 to 9999 can be shown in the form of:
Each of x, y, z represent the digits from 0 to 9, so 10 ways each.
For each of the forms we have:
Total of:
By the way this is applicable to any digit.
Max number of digits=4
Their can be 4ways to represent
Each form can repeat 3
Total repeating