First, the variable has to be declared. The type of the variable has to be declared as well. Next is the process of inputting data. After which, the variable is equated to the inputted data. A process using the variable comes afterward. Lastly, the variable is equated to the resulting value.