Help in coding

anshchawla:
So I want to create a code so that Arduino remembers how many times it has gone through that part of the code and accordingly take a reading from an analog pin and store it as "gone i""(i. = No of times Arduino has gone through that part )"

Eg if the code is run for first time let's say we introduce a variable i and thus now i=1 and "gone1" should contain the value

And if i=2 then "gone2" should contain the value

How much time do you want this to continue?

Paul