Didn't find anything about this on Google. Is there no way to make a variable const after its declaration?

For example I want to run a program get the value of a variable at the beginning and make the variable const thereon so it will not be modified by the program.