The answer I found was $$(5^{10}-|\text{only}~4~\text{digits}|-|\text{only}~ 3|-|\text{only}~ 2|-|\text{only}~1|) \cdot C(10,5)=$$ where
$|\text{only}~1~\text{digit}| = 1^{10} \cdot C(10,1)$
$|\text{only}~2| = (2^{10}-|\text{only}~1|) \cdot C(10,2)$
$|\text{only}~3| = (3^{10}-|\text{only}~2|-|\text{only}~1|) \cdot C(10,3)$ ...etc
$5^{10}$ is supposed to represent the number of $10$ digit numbers which only use $5$ or fewer of $10$ distinct digits, just as there are $2^{10}$ binary strings of length $10$. I am subtracting from $5^{10}$ the number of strings which only contain $4$ distinct digits, $3$ distinct digits, $2$ distinct digits, and $1$ distinct digit, so I get the number of strings that use exactly $5$ distinct digits. I multiply by $C(10,5)$ because there are $C(10,5)$ ways to choose $5$ distinct digits. $|\text{only}~ 1|$ means the number of strings of length $10$ with exactly $1$ distinct digit.
For some reason I am not getting the right answer. Can someone tell me what I am doing wrong and post the correct answer please?
Your $C(10,5)$ chooses which five digits will be used. When you want to select the strings that use only one digit, you only want to subtract the ones that use one of these five digits, so it should be $C(5,1)$