i want a code such that i can be able to access each digit of a number.

eg..

in a for loop in 1 iteration,i want to access digits of 11^2ie 121 and in next iteration digits of 11^3 ie 1331 and in next 11^4 etc

i want to access 1,2 and 1 separately in 121.....

if we have 121 stored in an int variable,how can we transfer its value to an array?

i mean..

int k;

int a[10];

now i want vlue of k(121) to go into a such that a[0]=1,a[1]=2 and a[2]=1....and the value of k keeps changing in d loop,so i want corresponding change in a[]....

hope u get my point

thnx in advance...