Putting an integer in a code variable

Did you try with the code which i have given (I have modified some code of yours)