Variables resting after a loop?

Hello

try this

static int t2 = t;