In the first place excepting 0 all the 9 numbers can come ..in the next place excepting the number which appeared to its left (1st number) , other 9 numbers can come ...similarly all n places 9 numbers can come ..
Thus, the answer is 9*9*9*9....n times = 9n

