Digits of the number - 3 - fix the program
Problem
Let's try to fix the previous task.
To do this, you need to save the original number in some other variable, for example, n1
.
In this case, the original value will not be lost and we will be able to display the saved value in the output.
To do this, do the following:
1. in the 3rd line in the variable n1
store the value of the variable n
;
2. in the output statement on the 7th line, replace the output of the value of the variable n
with the output of the value of the variable n1
;
3. run the program, see the result of its work.