Changing int numbers with external means

jokefox:
Ok so if it was

Int lightOnhour 12
Blah blah

So instead of const in. Or define. Id use int.

But how do you change that with input from a person?

Like im gonna assume im gonna use a counter for this

So like button press (counter++)
{Int ++}

But what im having and issue with is what do i put in the first {} like how do i specify that i want to change that int.
And how do i save it so it stays at that number with each loop
Or does it just stay there automatically?

make a little program that attempts to do what you want it to ... then try it.