The number of numbers between $1$ to $10^{10}$ which contain the digit $1$ is
what i try:we have to formed total number between $1$ to $10^{10}$ from $0,1,2,3,4,5,6,7,8,9$
$\bullet\; $ Single digit number which contain $1$ is $1$
$\bullet\; $ Double digit numbers which contain $1$ is $17$
But this is very lengthy ways
How do i solve it Help me please