This is the code.
You are creating an infinite loop. T will be never equal to 0 because you are not decrementing it.
T
Just use a for lop