int x; x = 8; int res = 1; int i=1; while(i<8){ res = res*i; i++; } int ind = t[2];